palmed.edit.text
Class TextSerializer

java.lang.Object
  extended by palmed.edit.text.TextSerializer
All Implemented Interfaces:
ITextExtractor

public final class TextSerializer
extends java.lang.Object
implements ITextExtractor

This class provides a means to write part of a text to a stream.

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

Constructor Summary
TextSerializer(java.io.OutputStream stream, java.util.Vector exceptions)
          Create a text serializer.
 
Method Summary
 void select(IText text, Coordinate from, Coordinate to)
          Notify a text matches the search criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSerializer

public TextSerializer(java.io.OutputStream stream,
                      java.util.Vector exceptions)
Create a text serializer.

Parameters:
stream - the stream to write to
exceptions - the io exceptions raised during the operation
Method Detail

select

public void select(IText text,
                   Coordinate from,
                   Coordinate to)
Notify a text matches the search criteria.

Specified by:
select in interface ITextExtractor
Parameters:
text - the text
from - the starting coordinate relative to the text
to - the ending coordinate relative to the text


Copyright © 2004-2006 PalmEd. All Rights Reserved.