Class StreamGeometryOutput

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream out
      Output stream.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamGeometryOutput​(java.io.OutputStream out)
      Construct a new instance that writes to the given output stream with no configured file name or charset.
      StreamGeometryOutput​(java.io.OutputStream out, java.lang.String fileName)
      Construct a new instance that writes to the given output stream with the configured file name but no charset.
      StreamGeometryOutput​(java.io.OutputStream out, java.lang.String fileName, java.nio.charset.Charset charset)
      Construct a new instance that writes to the given output stream with the configured file name and charset.
    • Field Detail

      • out

        private final java.io.OutputStream out
        Output stream.
    • Constructor Detail

      • StreamGeometryOutput

        public StreamGeometryOutput​(java.io.OutputStream out)
        Construct a new instance that writes to the given output stream with no configured file name or charset.
        Parameters:
        out - output stream
      • StreamGeometryOutput

        public StreamGeometryOutput​(java.io.OutputStream out,
                                    java.lang.String fileName)
        Construct a new instance that writes to the given output stream with the configured file name but no charset.
        Parameters:
        out - output stream
        fileName - output file name; may be null
      • StreamGeometryOutput

        public StreamGeometryOutput​(java.io.OutputStream out,
                                    java.lang.String fileName,
                                    java.nio.charset.Charset charset)
        Construct a new instance that writes to the given output stream with the configured file name and charset.
        Parameters:
        out - output stream
        fileName - output file name; may be null
        charset - output charset; may be null
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Get the output stream for writing to the output.
        Specified by:
        getOutputStream in interface GeometryOutput
        Returns:
        output stream for writing to the output