Class AbstractGeometryIOMetadata

java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
All Implemented Interfaces:
GeometryIOMetadata
Direct Known Subclasses:
FileGeometryInput, FileGeometryOutput, StreamGeometryInput, StreamGeometryOutput, UrlGeometryInput

public class AbstractGeometryIOMetadata extends Object implements GeometryIOMetadata
Abstract base class for GeometryIOMetadata implementations.
  • Field Details

    • fileName

      private final String fileName
      File name; may be null.
    • charset

      private final Charset charset
      Charset; may be null.
  • Constructor Details

    • AbstractGeometryIOMetadata

      protected AbstractGeometryIOMetadata(String fileName, Charset charset)
      Construct a new instance with the given file name and charset.
      Parameters:
      fileName - file name; may be null
      charset - charset; may be null
  • Method Details

    • getFileName

      public String getFileName()
      Get the file name associated with the operation, if any.
      Specified by:
      getFileName in interface GeometryIOMetadata
      Returns:
      file name associated with the operation or null if unknown or not applicable
    • getCharset

      public Charset getCharset()
      Get the charset for the operation, if any.
      Specified by:
      getCharset in interface GeometryIOMetadata
      Returns:
      charset for the operation or null if unknown or not applicable
    • toString

      public String toString()
      Overrides:
      toString in class Object