org.jmol.viewer
Class FileManager.VectorDataReader
java.lang.Object
java.io.Reader
java.io.BufferedReader
org.jmol.viewer.FileManager.DataReader
org.jmol.viewer.FileManager.VectorDataReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
- Enclosing class:
- FileManager
class FileManager.VectorDataReader
- extends FileManager.DataReader
VectorDataReader subclasses BufferedReader and overrides its
read, readLine, mark, and reset methods so that JmolAdapter
works with Vector arrays without any further adaptation.
Field Summary |
private java.util.List |
data
|
private int |
len
|
private int |
pt
|
(package private) int |
ptMark
|
Fields inherited from class java.io.Reader |
lock |
Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, read, ready, skip |
Methods inherited from class java.io.Reader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
private java.util.List data
pt
private int pt
len
private int len
ptMark
int ptMark
FileManager.VectorDataReader
FileManager.VectorDataReader(java.util.List data)
read
public int read(char[] buf)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
readLine
public java.lang.String readLine()
- Overrides:
readLine
in class java.io.BufferedReader
mark
public void mark(long ptr)
reset
public void reset()
- Overrides:
reset
in class java.io.BufferedReader