public class ByteArraySource extends AbstractStreamSource
| Constructor and Description |
|---|
ByteArraySource(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReopen() |
byte[] |
getBytes() |
long |
getLength() |
InputStream |
getStream() |
copyTo, copyTo, destroy, getCharsetName, getString, setCharsetNamepublic long getLength()
throws IOException
getLength in interface StreamSourcegetLength in class AbstractStreamSourceIOExceptionpublic boolean canReopen()
canReopen in interface StreamSourcecanReopen in class AbstractStreamSourcepublic InputStream getStream() throws IOException
IOExceptionpublic byte[] getBytes()
throws IOException
getBytes in interface StreamSourcegetBytes in class AbstractStreamSourceIOExceptionCopyright © 2013 Nuxeo SA. All Rights Reserved.