gnu.mapping

Class CharArrayInPort

Implemented Interfaces:
Printable

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_SIZE, buffer, in, limit, lineNumber, markPos, pos, readAheadLimit, readState

Constructor Summary

CharArrayInPort(String string)
CharArrayInPort(char[] buffer)
CharArrayInPort(char[] buffer, int len)

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, read, readLine, readLine, ready, reset, setBuffer, setConvertCR, setKeepFullLines, setLineNumber, setName, setPath, skip, skip, skipRestOfLine, skip_quick, unread, unread_quick

Constructor Details

CharArrayInPort

public CharArrayInPort(String string)

CharArrayInPort

public CharArrayInPort(char[] buffer)

CharArrayInPort

public CharArrayInPort(char[] buffer,
                       int len)

Method Details

read

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