gnu.mapping
Class CharArrayInPort

java.lang.Object
  extended by java.io.Reader
      extended by gnu.text.LineBufferedReader
          extended by gnu.mapping.InPort
              extended by gnu.mapping.CharArrayInPort
All Implemented Interfaces:
Printable, java.io.Closeable, java.lang.Readable

public class CharArrayInPort
extends InPort

An Inport for reading from a char array. Essentially the same as an InPort wrapped around a CharArrayReader, but more efficient because it uses the char array as the InPort's buffer.


Field Summary
 
Fields inherited from class gnu.mapping.InPort
inLocation
 
Fields inherited from class gnu.text.LineBufferedReader
buffer, BUFFER_SIZE, in, limit, lineNumber, markPos, pos, readAheadLimit, readState
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
CharArrayInPort(char[] buffer)
           
CharArrayInPort(char[] buffer, int len)
           
CharArrayInPort(java.lang.String string)
           
 
Method Summary
 int read()
           
 
Methods inherited from class gnu.mapping.InPort
convertToReader, inDefault, openFile, openFile, print, setInDefault
 
Methods inherited from class gnu.text.LineBufferedReader
close, fill, getColumnNumber, getConvertCR, getLineNumber, getName, getPath, getReadState, incrLineNumber, lineStart, mark, markSupported, peek, read, readLine, readLine, ready, reset, setBuffer, setConvertCR, setKeepFullLines, setLineNumber, setName, setPath, skip_quick, skip, skip, skipRestOfLine, unread_quick, unread
 
Methods inherited from class java.io.Reader
read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharArrayInPort

public CharArrayInPort(char[] buffer,
                       int len)

CharArrayInPort

public CharArrayInPort(char[] buffer)

CharArrayInPort

public CharArrayInPort(java.lang.String string)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class LineBufferedReader
Throws:
java.io.IOException