@PublicAPI public class MolInputStream extends PositionedInputStream
encoding, keeporiginalLineEnding, lineByteBuffer, lineCurrentColumn
Constructor and Description |
---|
MolInputStream(java.io.InputStream is)
Create a molecule input stream from an ordinary one,
and determine the format.
|
MolInputStream(java.io.InputStream is,
java.lang.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(java.io.InputStream is,
java.lang.String fmt,
java.lang.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(java.io.InputStream is,
java.lang.String fmt,
java.lang.String enc,
java.lang.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 |
---|---|
java.lang.String |
getFormat()
Get the molecule file format.
|
java.lang.String |
getPath()
Gets the path or URL of the file.
|
void |
setFormat(java.lang.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, startGrabLines
public MolInputStream(java.io.InputStream is) throws java.io.IOException
is
- the original input streamjava.io.IOException
- error occurred while trying to guess the file
formatpublic MolInputStream(java.io.InputStream is, java.lang.String fmt) throws java.io.IOException
is
- the original input streamfmt
- the input file format or nulljava.io.IOException
- error occurred while trying to guess the file
formatpublic MolInputStream(java.io.InputStream is, java.lang.String fmt, java.lang.String enc) throws java.io.IOException
is
- the original input streamfmt
- the input file format or nullenc
- the input encoding or nulljava.io.IOException
- error occurred while trying to guess the file
formatpublic MolInputStream(java.io.InputStream is, java.lang.String fmt, java.lang.String enc, java.lang.String path) throws java.io.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 null
java.io.IOException
- error occurred while trying to guess the file
formatpublic java.lang.String getFormat()
public void setFormat(java.lang.String fmt)
fmt
- the formatpublic java.lang.String getPath()
null
if unknown