|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.Reader
java.io.InputStreamReader
com.ohrasys.cad.gds.GDSReader
public class GDSReader
A basic GDS file reader
| Field Summary |
|---|
| Fields inherited from class java.io.Reader |
|---|
lock |
| Constructor Summary | |
|---|---|
GDSReader(java.io.File file)
Creates a new GDSReader object. |
|
GDSReader(java.io.File file,
boolean validating)
Creates a new GDSReader object. |
|
GDSReader(java.io.FileDescriptor fd)
Creates a new GDSReader object. |
|
GDSReader(java.io.FileDescriptor fd,
boolean validating)
Creates a new GDSReader object. |
|
GDSReader(GDSInputStream in,
boolean validating)
Creates a new GDSReader object. |
|
GDSReader(java.lang.String fileName)
Creates a new GDSReader object. |
|
GDSReader(java.lang.String fileName,
boolean validating)
Creates a new GDSReader object. |
|
| Method Summary | |
|---|---|
int |
getRead()
A method to determine the number of bytes read from the file. |
int |
getRemaining()
A method to determine the number of bytes remaining to be read |
int |
getSize()
A method to determine the size of the GDS file. |
void |
mark(int readAheadLimit)
Marks the current position in the file. |
boolean |
markSupported()
Determines if marks are supported by this reader. |
int |
read()
Reads the next value from the stream. |
int |
read(char[] cbuf)
A blocking read into a character buffer. |
int |
read(char[] buf,
int offset,
int length)
Reads a string of characters into a buffer. |
java.lang.Object |
readRecord()
Reads a single GDSRecord from the filestream. |
void |
reset()
Resets the stream and mark pointer. |
long |
skip(long num)
Skips a finite number of bytes in the stream |
java.lang.String |
toString()
Returns a string representation of this class |
| Methods inherited from class java.io.InputStreamReader |
|---|
close, getEncoding, ready |
| Methods inherited from class java.io.Reader |
|---|
read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GDSReader(java.io.File file)
throws java.io.FileNotFoundException
file - The file to read from.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.
public GDSReader(java.io.FileDescriptor fd)
throws java.io.FileNotFoundException
fd - The file descriptor to read from.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.
public GDSReader(java.lang.String fileName)
throws java.io.FileNotFoundException
fileName - The file to read from.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.
public GDSReader(GDSInputStream in,
boolean validating)
throws java.io.FileNotFoundException
in - The input stream to read fromvalidating - Set to true if on the fly validating is to be
performed.
java.io.FileNotFoundException - If the input file doesn't exist or is not
readable.
public GDSReader(java.io.FileDescriptor fd,
boolean validating)
throws java.io.FileNotFoundException
fd - The file descriptor to read fromvalidating - Set to true if on the fly validating is to be
performed.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.
public GDSReader(java.lang.String fileName,
boolean validating)
throws java.io.FileNotFoundException
fileName - The file to read from.validating - Set to true if on the fly validating is to be
performed.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.
public GDSReader(java.io.File file,
boolean validating)
throws java.io.FileNotFoundException
file - The file to read from.validating - Set to true if on the fly validating is to be
performed.
java.io.FileNotFoundException - If the file doesn't exist or is not
readable.| Method Detail |
|---|
public int getRead()
throws GDSReaderException
GDSReaderException - If an error in processing occurs.
public int getRemaining()
throws GDSReaderException
GDSReaderException - If an error in processing occurs.
public int getSize()
throws GDSReaderException
GDSReaderException - If an error in processing occurs.
public void mark(int readAheadLimit)
throws java.io.IOException
mark in class java.io.ReaderreadAheadLimit - The maximum read ahead limit.
java.io.IOException - Always thrown. This method is not supported.public boolean markSupported()
markSupported in class java.io.Reader
public int read()
throws java.io.IOException
read in class java.io.InputStreamReaderjava.io.IOException - If an IO exception occurs.
public int read(char[] cbuf)
throws java.io.IOException
read in class java.io.Readercbuf - The buffer to read into to
java.io.IOException - If an IO exception occurs.
public int read(char[] buf,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamReaderbuf - The destination for the read.offset - The starting offset from the beginning of the destination
buffer.length - The number of characters to read.
java.io.IOException - If an IO exception occurs.
public java.lang.Object readRecord()
throws GDSReaderException
GDSReaderException - If an error in processing occurs.
public void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOException - Always thrown as reset is not supported by GDSReader.
public long skip(long num)
throws java.io.IOException
skip in class java.io.Readernum - The number of bytes to skip
java.io.IOException - If an IO exception occurspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||