Class FileGeometryOutput

java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.output.FileGeometryOutput
All Implemented Interfaces:
GeometryIOMetadata, GeometryOutput

public class FileGeometryOutput extends AbstractGeometryIOMetadata implements GeometryOutput
GeometryOutput implementation for writing content to a file.
  • Field Details

    • file

      private final Path file
      File to write to.
  • Constructor Details

    • FileGeometryOutput

      public FileGeometryOutput(Path file)
      Construct a new instance with the given file and no charset.
      Parameters:
      file - output file
    • FileGeometryOutput

      public FileGeometryOutput(Path file, Charset charset)
      Construct a new instance with the given file and charset.
      Parameters:
      file - output file
      charset - file charset
  • Method Details