public class FileGeometryOutput extends AbstractGeometryIOMetadata implements GeometryOutput
GeometryOutput
implementation for writing content to a file.Constructor and Description |
---|
FileGeometryOutput(Path file)
Construct a new instance with the given file and no charset.
|
FileGeometryOutput(Path file,
Charset charset)
Construct a new instance with the given file and charset.
|
Modifier and Type | Method and Description |
---|---|
Path |
getFile()
Get the output file.
|
OutputStream |
getOutputStream()
Get the output stream for writing to the output.
|
String |
toString() |
getCharset, getFileName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharset, getFileName
public FileGeometryOutput(Path file)
file
- output filepublic FileGeometryOutput(Path file, Charset charset)
file
- output filecharset
- file charsetpublic OutputStream getOutputStream()
The returned output stream is buffered.
getOutputStream
in interface GeometryOutput
public String toString()
toString
in class AbstractGeometryIOMetadata
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.