Package org.geotools.data
Class PrjFileReader
- Object
-
- PrjFileReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PrjFileReader extends Object implements Closeable
- Since:
- 2.3
- Author:
- Simone Giannecchini
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.CoordinateReferenceSystemgetCoordinateReferenceSystem()Return the Coordinate Reference System retrieved by this reader.
-
-
-
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.- Throws:
IOException- If an error occurs.FactoryException
-
-
Method Detail
-
getCoordinateReferenceSystem
public CoordinateReferenceSystem getCoordinateReferenceSystem()
Return the Coordinate Reference System retrieved by this reader.- Returns:
- the Coordinate Reference System
-
close
public void close() throws IOExceptionThe reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-