public abstract class ThresholdOutputStream.ThresholdInputStream extends InputStream
Constructor and Description |
---|
ThresholdOutputStream.ThresholdInputStream() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Gets the byte buffer.
|
String |
getFileName()
Returns the file name of the stream.
|
long |
getLength()
Returns the length of the stream.
|
String |
getMimeType()
Returns the MIME type of the stream.
|
File |
getTemporaryFile()
Gets the temporary file.
|
abstract boolean |
isInMemory()
Returns if the data is stored in memory.
|
abstract void |
rewind()
Rewinds the stream so that it can be read from the beginning.
|
available, close, mark, markSupported, read, read, read, reset, skip
public ThresholdOutputStream.ThresholdInputStream()
public abstract boolean isInMemory()
true
if the data is in memory and false
if
the data resides in a temporary filepublic File getTemporaryFile()
null
if the data is stored in
memorypublic byte[] getBytes()
null
if the data is
stored in a filepublic String getMimeType()
null
if the MIME type is unknownpublic String getFileName()
null
if the file name is unknownpublic long getLength()
public abstract void rewind() throws IOException
IOException
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.