public abstract class AbstractStreamSource extends Object implements StreamSource
Constructor and Description |
---|
AbstractStreamSource() |
Modifier and Type | Method and Description |
---|---|
boolean |
canReopen() |
void |
copyTo(File file) |
void |
copyTo(OutputStream out) |
void |
destroy() |
byte[] |
getBytes() |
String |
getCharsetName()
Get the charset used for serializing the String source as a byte stream.
|
long |
getLength() |
String |
getString() |
void |
setCharsetName(String charsetName)
Change the charset used for serializing the String source as a byte
stream.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStream
public long getLength() throws IOException
getLength
in interface StreamSource
IOException
public boolean canReopen()
canReopen
in interface StreamSource
public byte[] getBytes() throws IOException
getBytes
in interface StreamSource
IOException
public String getString() throws IOException
getString
in interface StreamSource
IOException
public void copyTo(File file) throws IOException
copyTo
in interface StreamSource
IOException
public void copyTo(OutputStream out) throws IOException
copyTo
in interface StreamSource
IOException
public void destroy()
destroy
in interface StreamSource
public void setCharsetName(String charsetName)
public String getCharsetName()
Copyright © 2013 Nuxeo SA. All Rights Reserved.