Class 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
      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 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.
        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 IOException
        The reader will close itself right after reading the CRS from the prj file, so no actual need to call it explicitly anymore.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Throws:
        IOException