gnu.mapping
Class CharArrayInPort

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          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, limit, lineNumber, markPos, pos, readAheadLimit, readState
 
Fields inherited from class java.io.FilterReader
in
 
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
fill, getColumnNumber, getConvertCR, getLineNumber, getName, getReadState, lineStart, mark, markSupported, peek, read, readLine, readLine, ready, reset, setBuffer, setConvertCR, setLineNumber, setName, skip_quick, skip, skip, unread_quick, unread
 
Methods inherited from class java.io.FilterReader
close, skip
 
Methods inherited from class java.io.Reader
read, read
 
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