Package uk.ac.starlink.ttools.votlint
Class StreamingHandler
java.lang.Object
uk.ac.starlink.ttools.votlint.ElementHandler
uk.ac.starlink.ttools.votlint.StreamingHandler
- Direct Known Subclasses:
BinaryHandler,FitsHandler
Abstract handler superclass for elements with STREAM children
(BINARY or FITS).
- Since:
- 8 Apr 2005
- Author:
- Mark Taylor (Starlink)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidfeed(InputStream in) Consumes a decoded input stream containing the data of a table, encoded according to the rules specified by this element.protected voidfoundRow()Invoked to log that a row has been counted (used for keeping track of how many have been seen).Returns the fields used for this stream.voidCalled after the attributes have been set and checked.Methods inherited from class uk.ac.starlink.ttools.votlint.ElementHandler
characters, configure, endElement, error, getAncestry, getAttribute, getContext, getName, getRef, info, registerChildName, setAncestry, setAttributes, toString, warning
-
Constructor Details
-
StreamingHandler
public StreamingHandler()
-
-
Method Details
-
startElement
public void startElement()Description copied from class:ElementHandlerCalled after the attributes have been set and checked. The default implementation does nothing.- Overrides:
startElementin classElementHandler
-
getFields
Returns the fields used for this stream.- Returns:
- FieldHandler objects for the columns held in this stream
-
foundRow
protected void foundRow()Invoked to log that a row has been counted (used for keeping track of how many have been seen). -
feed
Consumes a decoded input stream containing the data of a table, encoded according to the rules specified by this element.- Parameters:
in- input stream to read- Throws:
IOException
-