GXPARSE hosted by SourceForge.net Logo

ca.gorman.util.scan
Interface Expandable

All Known Subinterfaces:
InputControl, InputScanBuffer, ScanBuffer
All Known Implementing Classes:
AbstractReaderBuffer, AbstractScanBuffer, InputControl.Default

public interface Expandable

Control interface for increasing the capacity of a buffer or other object.


Method Summary
 boolean expand()
           Increase the amount of data in the buffer, if the buffer supports expansion.
 

Method Detail

expand

boolean expand()
               throws IOException

Increase the amount of data in the buffer, if the buffer supports expansion.

Expansion is not guaranteed, because the buffer may not support expansion or because the current state of the buffer (or its data source) may not permit expansion.

A successful expansion of a full buffer will increase the memory used by the buffer. A buffer with free space may simply add more data to the free space instead of acquiring and filling additional memory.

Returns:
true if more data has been made available in the buffer
Throws:
IOException

GXPARSE download

GXPARSE Generic XML Stream Parser API and supporting tools.   Release $Name: gxparse-sf-alpha-2_0 $
Copyright 2003-2004 Ian E. Gorman
Released under GNU Lesser General Public License