|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream java.io.FilterInputStream net.sf.basedb.core.plugin.ImportInputStream
public class ImportInputStream
An input stream used for input to import plug-ins. The input stream
is a regular InputStream
but provides methods for accessing
metadata about the original source the stream is originating from.
This class is intended to be subclassed by implementations more
suitable for the type of import. For example the
FileImportInputStream
for importing from
files on the BASE file system.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
ImportInputStream(InputStream in)
Create a new import stream. |
Method Summary | |
---|---|
String |
getCharacterSet()
Get the character set used by the source if it is a text-file. |
String |
getFilename()
Get the name of the source. |
long |
getLength()
Get the length of the stream in number of bytes. |
String |
getMimeType()
Get the MIME type of the source. |
Methods inherited from class java.io.FilterInputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImportInputStream(InputStream in)
in
- The source stream to read fromMethod Detail |
---|
public long getLength()
public String getMimeType()
public String getCharacterSet()
Charset.forName(String)
public String getFilename()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |