public class WikiAttachment extends jp.co.intra_mart.foundation.contentssearch.model.attachment.MimeTypeDetectionAttachment implements jp.co.intra_mart.foundation.contentssearch.model.attachment.BufferedAttachment, Serializable
コンストラクタと説明 |
---|
WikiAttachment(File file,
String fileName)
指定されたファイルで添付ファイルを初期化します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getBufferSize() |
BufferedInputStream |
getInputStream()
BufferedInputStreamでラップされたファイルの入力ストリームを返します。
|
String |
getRealName()
ファイルの名称を返します。
|
long |
length() |
void |
setBufferSize(int size) |
String |
toString() |
getExtension, getMimeType, setRealName
getDisplayName, setDisplayName, setExtension, setMimeType
public WikiAttachment(File file, String fileName)
file
- ファイルfileName
- ファイル名NullPointerException
- 指定されたファイルが null である場合public int getBufferSize()
getBufferSize
インタフェース内 jp.co.intra_mart.foundation.contentssearch.model.attachment.BufferedAttachment
public BufferedInputStream getInputStream() throws jp.co.intra_mart.foundation.contentssearch.exception.ContentsSearchDataAccessException
setBufferSize()
で設定された値を利用します。BufferedAttachment.DEFAULT_BUFFER_SIZE
を利用します。getInputStream
インタフェース内 jp.co.intra_mart.foundation.contentssearch.model.attachment.Attachment
getInputStream
インタフェース内 jp.co.intra_mart.foundation.contentssearch.model.attachment.BufferedAttachment
jp.co.intra_mart.foundation.contentssearch.exception.ContentsSearchDataAccessException
Attachment.getInputStream()
public String getRealName()
getRealName
クラス内 jp.co.intra_mart.foundation.contentssearch.model.attachment.MimeTypeDetectionAttachment
MimeTypeDetectionAttachment.getRealName()
public long length() throws jp.co.intra_mart.foundation.contentssearch.exception.ContentsSearchDataAccessException
length
インタフェース内 jp.co.intra_mart.foundation.contentssearch.model.attachment.Attachment
jp.co.intra_mart.foundation.contentssearch.exception.ContentsSearchDataAccessException
public void setBufferSize(int size)
setBufferSize
インタフェース内 jp.co.intra_mart.foundation.contentssearch.model.attachment.BufferedAttachment
public String toString()
toString
クラス内 jp.co.intra_mart.foundation.contentssearch.model.attachment.MimeTypeDetectionAttachment
Copyright © 2012 NTT DATA INTRAMART CORPORATION