protected static class DataSourceProvider.SequencedDataSource
extends java.lang.Object
implements javax.activation.DataSource
Modifier and Type | Field and Description |
---|---|
private byte[] |
byteBuffer |
private int |
byteBufferLength |
private int |
byteBufferOffset |
private java.io.File |
tempFile |
private java.lang.String |
type |
Modifier | Constructor and Description |
---|---|
protected |
SequencedDataSource(byte[] byteBuffer,
int byteBufferOffset,
int byteBufferLength,
java.io.File tempFile,
java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.io.InputStream |
getInputStream() |
java.lang.String |
getName() |
java.io.OutputStream |
getOutputStream() |
private final byte[] byteBuffer
private final int byteBufferOffset
private final int byteBufferLength
private final java.io.File tempFile
private final java.lang.String type
protected SequencedDataSource(byte[] byteBuffer, int byteBufferOffset, int byteBufferLength, java.io.File tempFile, java.lang.String type)
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException