com.partnersoft.formats.shapefile
Class ShpNull

java.lang.Object
  extended by com.partnersoft.formats.shapefile.ShpNull
All Implemented Interfaces:
Immutable, ShpShape

public class ShpNull
extends java.lang.Object
implements ShpShape

A null shape. These are used in shapefiles to indicate removed or otherwise missing graphics. They have no actual geometry.

Copyright 2006-2007 Partner Software, Inc.

Version:
$Id: ShpNull.java 1012 2007-11-24 18:30:02Z paul $
Author:
Paul Reavis

Field Summary
static ShpNull INSTANCE
          Since all ShpNull objects have no state and are thus equivalent, you can just use this handy instance constant for all your ShpNull needs.
 
Constructor Summary
ShpNull()
          Creates a new ShpNull object.Using INSTANCE is recommended, however.
ShpNull(ShapeByteReader reader)
          Creates a new ShpNull object from the given input, not that it uses it.
 
Method Summary
 ShapeType getType()
          Returns the type for this shape.
 void writeBytes(ShapeByteWriter writer)
          Writes this shape, in binary format, to the given output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final ShpNull INSTANCE
Since all ShpNull objects have no state and are thus equivalent, you can just use this handy instance constant for all your ShpNull needs.

Constructor Detail

ShpNull

public ShpNull()
Creates a new ShpNull object.Using INSTANCE is recommended, however.


ShpNull

public ShpNull(ShapeByteReader reader)
Creates a new ShpNull object from the given input, not that it uses it.

Method Detail

getType

public ShapeType getType()
Description copied from interface: ShpShape
Returns the type for this shape.

Specified by:
getType in interface ShpShape

writeBytes

public void writeBytes(ShapeByteWriter writer)
Description copied from interface: ShpShape
Writes this shape, in binary format, to the given output. Does not include the type code.

Specified by:
writeBytes in interface ShpShape