Class FileGeometryOutput

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.file.Path file
      File to write to.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileGeometryOutput​(java.nio.file.Path file)
      Construct a new instance with the given file and no charset.
      FileGeometryOutput​(java.nio.file.Path file, java.nio.charset.Charset charset)
      Construct a new instance with the given file and charset.
    • Field Detail

      • file

        private final java.nio.file.Path file
        File to write to.
    • Constructor Detail

      • FileGeometryOutput

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

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

      • getFile

        public java.nio.file.Path getFile()
        Get the output file.
        Returns:
        output file
      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Get the output stream for writing to the output.

        The returned output stream is buffered.

        Specified by:
        getOutputStream in interface GeometryOutput
        Returns:
        output stream for writing to the output