gnu.text |
The gnu.text Package
Supports various utility classes
for formatting, parsing, and manipulating text (strings).
It is used by Kawa.
License
See the file COPYING.
Author
Per Bothner
<per@bothner.com>
How to get it
The gnu.text package is currently distributed as part of
Kawa, though it can be used independent
of the rest of Kawa.
Bugs and patches
Send them to per@bothner.com,
or to the Kawa mailing list.
|
Java Source File Name | Type | Comment |
Char.java | Class | A wrapper for characters. |
Lexer.java | Class | Framework for implementing lexical scanners. |
LineBufferedReader.java | Class | A LineNumberReader with some extra features:
You can seek backwards to the start of the line preceding the
current position (or the mark, if that has been set).
You can use seek with a negative offset, or unread.
You can also use peek to look at the next character without moving.
The method getColumnNumber gives you the current column.
Provides a method that is called at the start of a line.
This is especially useful for interactive streams (e.g. |
NullReader.java | Class | A reader for an empty stream (similar to /dev/null). |
PrettyWriter.java | Class | A pretty printer. |
SourceError.java | Class | Represents an error message from processing a "source" file. |
SourceMessages.java | Class | A collection of (zero or more) SourceErrors. |
SyntaxException.java | Class | Used to signal a non-recoverable (i.e. |
WriterManager.java | Class | Manages a collection of Writers, handling automatic closing. |