org.wkb4j.factories
Class LoggingWKBFactory

java.lang.Object
  |
  +--org.wkb4j.factories.AbstractWKBFactory
        |
        +--org.wkb4j.factories.LoggingWKBFactory
All Implemented Interfaces:
WKBFactory, WKBFactory3D, WKBGeometryTypes
Direct Known Subclasses:
EmptyWKBFactory

public class LoggingWKBFactory
extends AbstractWKBFactory
implements WKBFactory3D

Version:
$Revision: 1.7 $ $Date: 2003/07/01 22:04:46 $
Author:
David Garnier Creation date: 6 juil. 2002 23:10:29

Field Summary
protected static org.apache.log4j.Logger log
           
 
Fields inherited from class org.wkb4j.factories.AbstractWKBFactory
depthPointer, geometryDepth, inUnit, inWork, typeStack, values, words
 
Fields inherited from interface org.wkb4j.engine.WKBGeometryTypes
linearRing, wkbGeometryCollection, wkbLineString, wkbMultiLineString, wkbMultiPoint, wkbMultiPolygon, wkbPoint, wkbPolygon
 
Constructor Summary
LoggingWKBFactory()
           
 
Method Summary
 void abortGeometryCollection()
          Signals a malformed GeometryCollection.
 void abortLinearRing()
          Signals a malformed LinearRing.
 void abortLineString()
          Signals a malformed LineString.
 void abortMultiLineString()
          Signals a malformed MultiLineString.
 void abortMultiPoint()
          Signals a malformed MultiPoint.
 void abortMultiPolygon()
          Signals a malformed MultiPolygon.
 void abortPoint()
          Signals a malformed Point.
 void abortPolygon()
          Signals a malformed Polygon.
 void abortUnit()
          Signals the problematic stop of the transcription process for a Geometry.
 void abortWork()
          Signals the problematic stop of the transcription process for a buffer of WKB data.
 boolean addPoints(double[] points)
          points is an array of doubles reprensentings coordinates.
 boolean addPoints3D(double[] points)
          points is an array of doubles reprensentings coordinates.
 boolean beginGeometryCollection(int count)
          Signals the beginning of a new GeometryCollection.
 boolean beginLinearRing(int count)
          Signals the beginning of a new LinearRing.
 boolean beginLineString(int count)
          Signals the beginning of a new LineString
 boolean beginMultiLineString(int count)
          Signals the beginning of a new MultiLineString.
 boolean beginMultiPoint(int count)
          Signals the beginning of a new MultiPoint.
 boolean beginMultiPolygon(int count)
          Signals the beginning of a new MultiPolygon.
 boolean beginPoint()
          Signals the beginning of a new Point
 boolean beginPolygon(int count)
          Signals the beginning of a new Polygon.
 void beginUnit(java.lang.String[] words, int[] values)
          Signals the beginning of the transcription process for a Geometry.
 void beginWork()
          Signals the beginning of the transcription process for a buffer of WKB data.
 boolean endGeometryCollection()
          Signals the end of a GeometryCollection.
 boolean endLinearRing()
          Signals the end of a LinearRing.
 boolean endLineString()
          Signals the end of a LineString.
 boolean endMultiLineString()
          Signals the end of a MultiLineString.
 boolean endMultiPoint()
          Signals the end of a MultiPoint.
 boolean endMultiPolygon()
          Signals the end of a MultiPolygon.
 boolean endPoint()
          Signals the end of a Point.
 boolean endPolygon()
          Signals the end of a Polygon.
 void endUnit()
          Signals the end of the transcription process for a Geometry.
 void endWork()
          Signals the end of the transcription process for a buffer of WKB data.
 void reset()
           
 
Methods inherited from class org.wkb4j.factories.AbstractWKBFactory
beginUnit, getValues, getWords, init, newGeometryCollectionComponent, setValues, setWords
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
Constructor Detail

LoggingWKBFactory

public LoggingWKBFactory()
Method Detail

beginWork

public void beginWork()
Description copied from interface: WKBFactory
Signals the beginning of the transcription process for a buffer of WKB data.

Specified by:
beginWork in interface WKBFactory
Overrides:
beginWork in class AbstractWKBFactory
See Also:
WKBFactory.beginWork()

endWork

public void endWork()
Description copied from interface: WKBFactory
Signals the end of the transcription process for a buffer of WKB data.

Specified by:
endWork in interface WKBFactory
Overrides:
endWork in class AbstractWKBFactory
See Also:
WKBFactory.endWork()

abortWork

public void abortWork()
Description copied from interface: WKBFactory
Signals the problematic stop of the transcription process for a buffer of WKB data.

Specified by:
abortWork in interface WKBFactory
Overrides:
abortWork in class AbstractWKBFactory
See Also:
WKBFactory.abortWork()

beginUnit

public void beginUnit(java.lang.String[] words,
                      int[] values)
Description copied from interface: WKBFactory
Signals the beginning of the transcription process for a Geometry. The submitted values will be available to all the Geometries contained in this Geometry

Specified by:
beginUnit in interface WKBFactory
Overrides:
beginUnit in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginUnit()

endUnit

public void endUnit()
Description copied from interface: WKBFactory
Signals the end of the transcription process for a Geometry.

Specified by:
endUnit in interface WKBFactory
Overrides:
endUnit in class AbstractWKBFactory
See Also:
WKBFactory.endUnit()

abortUnit

public void abortUnit()
Description copied from interface: WKBFactory
Signals the problematic stop of the transcription process for a Geometry.

Specified by:
abortUnit in interface WKBFactory
Overrides:
abortUnit in class AbstractWKBFactory
See Also:
WKBFactory.abortUnit()

beginGeometryCollection

public boolean beginGeometryCollection(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new GeometryCollection.

Specified by:
beginGeometryCollection in interface WKBFactory
Overrides:
beginGeometryCollection in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginGeometryCollection()

endGeometryCollection

public boolean endGeometryCollection()
Description copied from interface: WKBFactory
Signals the end of a GeometryCollection.

Specified by:
endGeometryCollection in interface WKBFactory
Overrides:
endGeometryCollection in class AbstractWKBFactory
See Also:
WKBFactory.endGeometryCollection()

abortGeometryCollection

public void abortGeometryCollection()
Description copied from interface: WKBFactory
Signals a malformed GeometryCollection. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortGeometryCollection in interface WKBFactory
Overrides:
abortGeometryCollection in class AbstractWKBFactory
See Also:
WKBFactory.abortGeometryCollection()

beginLineString

public boolean beginLineString(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new LineString. * @param count the number of elements in the LineString

Specified by:
beginLineString in interface WKBFactory
Overrides:
beginLineString in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginLineString()

endLineString

public boolean endLineString()
Description copied from interface: WKBFactory
Signals the end of a LineString.

Specified by:
endLineString in interface WKBFactory
Overrides:
endLineString in class AbstractWKBFactory
See Also:
WKBFactory.endLineString()

abortLineString

public void abortLineString()
Description copied from interface: WKBFactory
Signals a malformed LineString. This can happen at any time, and Factories should just skip the malformed and maybe escalate the error.

Specified by:
abortLineString in interface WKBFactory
Overrides:
abortLineString in class AbstractWKBFactory
See Also:
WKBFactory.abortLineString()

beginMultiLineString

public boolean beginMultiLineString(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new MultiLineString.

Specified by:
beginMultiLineString in interface WKBFactory
Overrides:
beginMultiLineString in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginMultiLineString()

endMultiLineString

public boolean endMultiLineString()
Description copied from interface: WKBFactory
Signals the end of a MultiLineString.

Specified by:
endMultiLineString in interface WKBFactory
Overrides:
endMultiLineString in class AbstractWKBFactory
See Also:
WKBFactory.endMultiLineString()

abortMultiLineString

public void abortMultiLineString()
Description copied from interface: WKBFactory
Signals a malformed MultiLineString. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortMultiLineString in interface WKBFactory
Overrides:
abortMultiLineString in class AbstractWKBFactory
See Also:
WKBFactory.abortMultiLineString()

beginPoint

public boolean beginPoint()
Description copied from interface: WKBFactory
Signals the beginning of a new Point. * @param count the number of elements in the Point

Specified by:
beginPoint in interface WKBFactory
Overrides:
beginPoint in class AbstractWKBFactory
See Also:
WKBFactory.beginPoint()

endPoint

public boolean endPoint()
Description copied from interface: WKBFactory
Signals the end of a Point.

Specified by:
endPoint in interface WKBFactory
Overrides:
endPoint in class AbstractWKBFactory
See Also:
WKBFactory.endPoint()

abortPoint

public void abortPoint()
Description copied from interface: WKBFactory
Signals a malformed Point. This can happen at any time, and Factories should just skip the malformed and maybe escalate the error.

Specified by:
abortPoint in interface WKBFactory
Overrides:
abortPoint in class AbstractWKBFactory
See Also:
WKBFactory.abortPoint()

beginMultiPoint

public boolean beginMultiPoint(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new MultiPoint.

Specified by:
beginMultiPoint in interface WKBFactory
Overrides:
beginMultiPoint in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginMultiPoint()

endMultiPoint

public boolean endMultiPoint()
Description copied from interface: WKBFactory
Signals the end of a MultiPoint.

Specified by:
endMultiPoint in interface WKBFactory
Overrides:
endMultiPoint in class AbstractWKBFactory
See Also:
WKBFactory.endMultiPoint()

abortMultiPoint

public void abortMultiPoint()
Description copied from interface: WKBFactory
Signals a malformed MultiPoint. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortMultiPoint in interface WKBFactory
Overrides:
abortMultiPoint in class AbstractWKBFactory
See Also:
WKBFactory.abortMultiPoint()

beginMultiPolygon

public boolean beginMultiPolygon(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new MultiPolygon.

Specified by:
beginMultiPolygon in interface WKBFactory
Overrides:
beginMultiPolygon in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginMultiPolygon()

endMultiPolygon

public boolean endMultiPolygon()
Description copied from interface: WKBFactory
Signals the end of a MultiPolygon.

Specified by:
endMultiPolygon in interface WKBFactory
Overrides:
endMultiPolygon in class AbstractWKBFactory
See Also:
WKBFactory.endMultiPolygon()

abortMultiPolygon

public void abortMultiPolygon()
Description copied from interface: WKBFactory
Signals a malformed MultiPolygon. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortMultiPolygon in interface WKBFactory
Overrides:
abortMultiPolygon in class AbstractWKBFactory
See Also:
WKBFactory.abortMultiPolygon()

beginPolygon

public boolean beginPolygon(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new Polygon.

Specified by:
beginPolygon in interface WKBFactory
Overrides:
beginPolygon in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginPolygon()

endPolygon

public boolean endPolygon()
Description copied from interface: WKBFactory
Signals the end of a Polygon.

Specified by:
endPolygon in interface WKBFactory
Overrides:
endPolygon in class AbstractWKBFactory
See Also:
WKBFactory.endPolygon()

abortPolygon

public void abortPolygon()
Description copied from interface: WKBFactory
Signals a malformed Polygon. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortPolygon in interface WKBFactory
Overrides:
abortPolygon in class AbstractWKBFactory
See Also:
WKBFactory.abortPolygon()

beginLinearRing

public boolean beginLinearRing(int count)
Description copied from interface: WKBFactory
Signals the beginning of a new LinearRing.

Specified by:
beginLinearRing in interface WKBFactory
Overrides:
beginLinearRing in class AbstractWKBFactory
See Also:
org.wkb4j.engine.WKBFactory#beginLinearRing()

endLinearRing

public boolean endLinearRing()
Description copied from interface: WKBFactory
Signals the end of a LinearRing.

Specified by:
endLinearRing in interface WKBFactory
Overrides:
endLinearRing in class AbstractWKBFactory
See Also:
WKBFactory.endLinearRing()

abortLinearRing

public void abortLinearRing()
Description copied from interface: WKBFactory
Signals a malformed LinearRing. This can happen at any time, and Factories should just skip the malformed Geometry and maybe escalate the error.

Specified by:
abortLinearRing in interface WKBFactory
Overrides:
abortLinearRing in class AbstractWKBFactory
See Also:
WKBFactory.abortLinearRing()

addPoints

public boolean addPoints(double[] points)
Description copied from interface: WKBFactory
points is an array of doubles reprensentings coordinates. They are in the same order as the data in the WKB format. addPoints() and addPoints3D() are mutually exclusive and can only be called once.

Specified by:
addPoints in interface WKBFactory
Overrides:
addPoints in class AbstractWKBFactory
See Also:
WKBFactory.addPoints(double[])

addPoints3D

public boolean addPoints3D(double[] points)
Description copied from interface: WKBFactory3D
points is an array of doubles reprensentings coordinates. They are in the same order as the data in the WKB format. addPoints() and addPoints3D() are mutually exclusive and can only be called once.

Specified by:
addPoints3D in interface WKBFactory3D
Overrides:
addPoints3D in class AbstractWKBFactory
See Also:
WKBFactory.addPoints(double[])

reset

public void reset()
Specified by:
reset in class AbstractWKBFactory
See Also:
AbstractWKBFactory.reset()


Copyright © 2002-2003 David Garnier. All Rights Reserved.