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, getFileNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCharset, getFileNamepublic FileGeometryInput(Path file)
file - input filepublic Path getFile()
public InputStream getInputStream()
The returned input stream is buffered.
getInputStream in interface GeometryInputpublic String toString()
toString in class AbstractGeometryIOMetadataCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.