palmed.edit.text
Class TextReader

java.lang.Object
  extended by palmed.edit.text.TextReader

public final class TextReader
extends java.lang.Object

This class reads a stream and builds the corresponding text.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Constructor Summary
TextReader(java.io.InputStream stream, ITextBuilder builder)
          Create a text reader.
 
Method Summary
 int read(byte[] buffer)
          Read into the buffer and trigger builder callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextReader

public TextReader(java.io.InputStream stream,
                  ITextBuilder builder)
Create a text reader.

Parameters:
stream - the stream to read from
builder - the text builder
Method Detail

read

public int read(byte[] buffer)
         throws java.io.IOException
Read into the buffer and trigger builder callbacks.

Parameters:
buffer - the buffer
Returns:
the number of bytes read
Throws:
java.io.IOException - an io exception occurs


Copyright © 2004-2006 PalmEd. All Rights Reserved.