public class FileGeometryInput extends AbstractGeometryIOMetadata implements GeometryInput
GeometryInput
implementation for reading content from a file.Constructor and Description |
---|
FileGeometryInput(Path file)
Construct a new instance for reading from the given file.
|
FileGeometryInput(Path file,
Charset charset)
Construct a new instance for reading from the given file with the
specific charset.
|
Modifier and Type | Method and Description |
---|---|
Path |
getFile()
Get the input file.
|
InputStream |
getInputStream()
Get the input stream for reading from the input.
|
String |
toString() |
getCharset, getFileName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharset, getFileName
public FileGeometryInput(Path file)
file
- input filepublic FileGeometryInput(Path file, Charset charset)
file
- input filecharset
- charset to use when reading from the input filepublic InputStream getInputStream()
The returned input stream is buffered.
getInputStream
in interface GeometryInput
public String toString()
toString
in class AbstractGeometryIOMetadata
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.