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, setCharsetName
public long getLength() throws IOException
getLength
in interface StreamSource
getLength
in class AbstractStreamSource
IOException
public boolean canReopen()
canReopen
in interface StreamSource
canReopen
in class AbstractStreamSource
public InputStream getStream() throws IOException
IOException
public byte[] getBytes() throws IOException
getBytes
in interface StreamSource
getBytes
in class AbstractStreamSource
IOException
Copyright © 2013 Nuxeo SA. All Rights Reserved.