public class MolInputStream extends PositionedInputStream
encoding, keeporiginalLineEnding, lineByteBuffer, lineCurrentColumnin| Constructor and Description |
|---|
MolInputStream(InputStream is)
Create a molecule input stream from an ordinary one,
and determine the format.
|
MolInputStream(InputStream is,
String fmt)
Create a molecule input stream from an ordinary one,
If null is specified as the fmt argument, then the file format is
determined automatically.
|
MolInputStream(InputStream is,
String fmt,
String enc)
Create a molecule input stream from an ordinary one,
If null is specified as the fmt argument, then the file format is
determined automatically.
|
MolInputStream(InputStream is,
String fmt,
String enc,
String path)
Create a molecule input stream from an ordinary one,
If null is specified as the fmt argument, then the file format is
determined automatically.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat()
Get the molecule file format.
|
String |
getPath()
Gets the path or URL of the file.
|
void |
setFormat(String fmt)
Sets the molecule file format.
|
bufincRead, endGrabLines, getEncoding, getFilePointer, getGrabbedLines, getLastEOL, getLineCount, getWord, isSeekable, length, putBackLine, putBackLine, read, read, readLine, reset, resetFilePointer, seek, setByteOrder, setDesiredBufferSize, setEncoding, setEncoding, setWord, skip, skipLine, startGrabLinesavailable, close, mark, markSupportedreadpublic MolInputStream(InputStream is) throws IOException
is - the original input streamIOException - error occured while trying to guess the file
formatpublic MolInputStream(InputStream is, String fmt) throws IOException
is - the original input streamfmt - the input file format or nullIOException - error occured while trying to guess the file
formatpublic MolInputStream(InputStream is, String fmt, String enc) throws IOException
is - the original input streamfmt - the input file format or nullenc - the input encoding or nullIOException - error occured while trying to guess the file
formatpublic MolInputStream(InputStream is, String fmt, String enc, String path) throws IOException
is - the original input streamfmt - the input file format or nullenc - the input encoding or nullpath - the file path (it can also be an URL) or nullIOException - error occured while trying to guess the file
formatpublic String getFormat()
public void setFormat(String fmt)
fmt - the formatpublic String getPath()
null if unknown