com.partnersoft.formats.shapefile
Class ShapeLib

java.lang.Object
  extended by com.partnersoft.formats.shapefile.ShapeLib
All Implemented Interfaces:
Lib

public class ShapeLib
extends java.lang.Object
implements Lib

Library methods for ESRI shapes.

Copyright 2001-2007 Partner Software, Inc.

Version:
$Id: ShapeLib.java 2328 2010-01-06 15:38:22Z paul $
Author:
Paul Reavis

Method Summary
static ShpShape readShape(byte[] bytes)
          Same as readShape(ShapeByteReader) but takes a byte array as input.
static ShpShape readShape(ShapeByteReader reader)
          Reads through a ShapeByteReader and converts it to an appropriate ShpShape instance.
static ShpShape readShape(java.lang.String hex)
          Same as readShape(ShapeByteReader) but takes a hexadecimal String as input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readShape

public static ShpShape readShape(java.lang.String hex)
Same as readShape(ShapeByteReader) but takes a hexadecimal String as input.


readShape

public static ShpShape readShape(byte[] bytes)
Same as readShape(ShapeByteReader) but takes a byte array as input.


readShape

public static ShpShape readShape(ShapeByteReader reader)
Reads through a ShapeByteReader and converts it to an appropriate ShpShape instance.