public class WorkflowFileAttachment
extends jp.co.intra_mart.foundation.contentssearch.model.attachment.MimeTypeDetectionAttachment
implements jp.co.intra_mart.foundation.contentssearch.model.attachment.BufferedAttachment
コンストラクタと説明 |
---|
WorkflowFileAttachment(File file)
指定されたファイルで添付ファイルを初期化します。
|
WorkflowFileAttachment(File file,
String displayName)
指定されたファイルで添付ファイルを初期化します。
|
WorkflowFileAttachment(File file,
String displayName,
String realName)
指定されたファイルで添付ファイルを初期化します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
getBufferSize() |
BufferedInputStream |
getInputStream()
BufferedInputStreamでラップされたファイルの入力ストリームを返します。
|
String |
getRealName()
ファイルの名称を返します。
|
long |
length() |
void |
setBufferSize(int size) |
String |
toString() |
getExtension, getMimeType, setRealName
getDisplayName, setDisplayName, setExtension, setMimeType
public WorkflowFileAttachment(File file)
file
- ファイルNullPointerException
- 指定されたファイルが null である場合public WorkflowFileAttachment(File file, String displayName)
file
- ファイルdisplayName
- ファイル表示名NullPointerException
- 指定されたファイルが null である場合public WorkflowFileAttachment(File file, String displayName, String realName)
file
- ファイルdisplayName
- ファイル表示名realName
- 実ファイル名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