public interface RMByteSource
Modifier and Type | Interface and Description |
---|---|
static class |
RMByteSource.AbstractSource
A basic implementation of an RMByteSource.
|
static class |
RMByteSource.BasicSource
An implementation for a byte source from an InputStream.
|
static class |
RMByteSource.ClassSource
An implementation of a byte source for a class and an extension (list).
|
static class |
RMByteSource.Factory
Creates a byte source from an object.
|
static class |
RMByteSource.FileSource
An implementation for a byte source from a file.
|
static class |
RMByteSource.URLSource
An implementation for a byte source from a URL.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canSaveToSource()
Returns whether source can save.
|
java.io.InputStream |
createInputStream()
Returns a new input stream for byte source.
|
byte[] |
getBytes()
Returns the source bytes.
|
java.lang.String |
getName()
Returns the name of the source.
|
java.lang.String |
getPath()
Returns the path of the source.
|
java.lang.String |
getURL()
Returns the URL of the source.
|
void |
refresh()
Clears cached bytes so they can be reloaded from real source.
|
void |
saveToSource()
Saves the source bytes.
|
void |
setBytes(byte[] theBytes)
Sets the source bytes.
|
java.lang.String getName()
java.lang.String getPath()
java.lang.String getURL()
byte[] getBytes()
void setBytes(byte[] theBytes)
java.io.InputStream createInputStream()
void refresh()
boolean canSaveToSource()
void saveToSource() throws java.io.IOException
java.io.IOException