public static class RMDocumentSource.ByteSourceSource extends RMDocumentSource.AbstractSource
RMDocumentSource.AbstractSource, RMDocumentSource.ByteSourceSource, RMDocumentSource.Factory, RMDocumentSource.PDFSource
RMByteSource.BasicSource, RMByteSource.ClassSource, RMByteSource.FileSource, RMByteSource.URLSource
NULL
Constructor and Description |
---|
RMDocumentSource.ByteSourceSource(RMByteSource aByteSource)
Creates a ByteSourceSource.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSaveToSource()
Returns whether source can save.
|
java.lang.String |
createURL()
Returns the source URL.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
byte[] |
getBytes()
Returns the byte source bytes.
|
RMByteSource |
getByteSource()
Returns the byte source.
|
java.lang.String |
getName()
Returns the source name.
|
java.lang.String |
getPath()
Returns the source path.
|
void |
refresh()
Clears cached document so it can be reloaded from real source.
|
void |
saveToSource()
Saves the source bytes.
|
void |
setBytes(byte[] theBytes)
Sets the byte source bytes.
|
void |
setByteSource(RMByteSource aSource)
Sets the byte source.
|
getDocument, setDocument, toString
createInputStream, getURL, setName, setPath, setURL
getClass, hashCode, notify, notifyAll, wait, wait, wait
createInputStream, getURL
public RMDocumentSource.ByteSourceSource(RMByteSource aByteSource)
public java.lang.String getName()
getName
in interface RMByteSource
getName
in class RMByteSource.AbstractSource
public java.lang.String getPath()
getPath
in interface RMByteSource
getPath
in class RMByteSource.AbstractSource
public java.lang.String createURL()
public byte[] getBytes()
getBytes
in interface RMByteSource
getBytes
in class RMByteSource.AbstractSource
public void setBytes(byte[] theBytes)
setBytes
in interface RMByteSource
setBytes
in class RMByteSource.AbstractSource
public RMByteSource getByteSource()
public void setByteSource(RMByteSource aSource)
public void refresh()
refresh
in interface RMByteSource
refresh
in class RMDocumentSource.AbstractSource
public boolean canSaveToSource()
public void saveToSource() throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object