org.geotools.data
Class PrjFileReader

Object
  extended by PrjFileReader

public class PrjFileReader
extends Object

Since:
2.3
Author:
Simone Giannecchini

Constructor Summary
PrjFileReader(ReadableByteChannel channel)
          Load the index file from the given channel.
PrjFileReader(ReadableByteChannel channel, Hints hints)
          Load the index file from the given channel.
 
Method Summary
 void close()
          The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.
 CoordinateReferenceSystem getCoodinateSystem()
          Deprecated. use getCoordinateReferenceSystem().
 CoordinateReferenceSystem getCoordinateReferenceSystem()
          Return the Coordinate Reference System retrieved by this reader.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrjFileReader

public PrjFileReader(ReadableByteChannel channel)
              throws IOException,
                     FactoryException
Load the index file from the given channel.

Parameters:
channel - The channel to read from.
Throws:
IOException - If an error occurs.
FactoryException

PrjFileReader

public PrjFileReader(ReadableByteChannel channel,
                     Hints hints)
              throws IOException,
                     FactoryException
Load the index file from the given channel.

Parameters:
channel - The channel to read from.
hints -
Throws:
IOException - If an error occurs.
FactoryException
Method Detail

getCoodinateSystem

public CoordinateReferenceSystem getCoodinateSystem()
Deprecated. use getCoordinateReferenceSystem().

Return the Coordinate Reference System retrieved by this reader.


getCoordinateReferenceSystem

public CoordinateReferenceSystem getCoordinateReferenceSystem()
Return the Coordinate Reference System retrieved by this reader.

Returns:
the Coordinate Reference System

close

public void close()
           throws IOException
The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.

Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.