public abstract class StreamBlob extends AbstractBlob
EMPTY_BYTE_ARRAY, EMPTY_INPUT_STREAM, EMPTY_READER, EMPTY_STRING
Constructor and Description |
---|
StreamBlob() |
Modifier and Type | Method and Description |
---|---|
ByteArrayBlob |
asByteArrayBlob() |
StringBlob |
asStringBlob() |
byte[] |
getByteArray() |
long |
getLength()
Gets the data length in bytes if known.
|
Reader |
getReader() |
String |
getString() |
static byte[] |
readBytes(InputStream in) |
static byte[] |
readBytes(Reader reader) |
static String |
readString(Reader reader) |
copy, copy, transferTo, transferTo, transferTo
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDigest, getEncoding, getFilename, getMimeType, getStream, isPersistent, persist, setDigest, setEncoding, setFilename, setMimeType
public static byte[] readBytes(InputStream in) throws IOException
IOException
public static byte[] readBytes(Reader reader) throws IOException
IOException
public static String readString(Reader reader) throws IOException
IOException
public byte[] getByteArray() throws IOException
IOException
public String getString() throws IOException
IOException
public Reader getReader() throws IOException
IOException
public long getLength()
Blob
public ByteArrayBlob asByteArrayBlob() throws IOException
IOException
public StringBlob asStringBlob() throws IOException
IOException
Copyright © 2013 Nuxeo SA. All Rights Reserved.