org.geotools.data.postgis
Class WKBAttributeIO

Object
  extended by WKBAttributeIO

public class WKBAttributeIO
extends Object

An attribute IO implementation that can manage the WKB

Since:
2.4.1
Author:
Andrea Aime
Module:
modules/plugin/jdbc-postgis (gt-jdbc-postgis.jar)

Constructor Summary
WKBAttributeIO()
           
WKBAttributeIO(GeometryFactory gf)
           
 
Method Summary
static byte getFromChar(char c)
          Turns a char that encodes four bits in hexadecimal notation into a byte
 Object read(ResultSet rs, int columnIndex)
           
 Object read(ResultSet rs, String columnName)
           
 void write(PreparedStatement ps, int position, Object value)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WKBAttributeIO

public WKBAttributeIO()

WKBAttributeIO

public WKBAttributeIO(GeometryFactory gf)
Method Detail

read

public Object read(ResultSet rs,
                   String columnName)
            throws IOException
Throws:
IOException
See Also:
AttributeIO.read(java.sql.ResultSet, int)

read

public Object read(ResultSet rs,
                   int columnIndex)
            throws IOException
Throws:
IOException
See Also:
AttributeIO.read(java.sql.ResultSet, int)

write

public void write(PreparedStatement ps,
                  int position,
                  Object value)
           throws IOException
Throws:
IOException
See Also:
AttributeIO.write(java.sql.PreparedStatement, int, java.lang.Object)

getFromChar

public static byte getFromChar(char c)
Turns a char that encodes four bits in hexadecimal notation into a byte

Parameters:
c -


Copyright © 1996-2009 Geotools. All Rights Reserved.