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, waitgetStreampublic long getLength()
throws IOException
getLength in interface StreamSourceIOExceptionpublic boolean canReopen()
canReopen in interface StreamSourcepublic byte[] getBytes()
throws IOException
getBytes in interface StreamSourceIOExceptionpublic String getString() throws IOException
getString in interface StreamSourceIOExceptionpublic void copyTo(File file) throws IOException
copyTo in interface StreamSourceIOExceptionpublic void copyTo(OutputStream out) throws IOException
copyTo in interface StreamSourceIOExceptionpublic void destroy()
destroy in interface StreamSourcepublic void setCharsetName(String charsetName)
public String getCharsetName()
Copyright © 2014 Nuxeo SA. All rights reserved.