public class UrlGeometryInput extends AbstractGeometryIOMetadata implements GeometryInput
GeometryInput
implementation for reading content from a URL.Constructor and Description |
---|
UrlGeometryInput(URL url)
Construct a new instance for reading from the given URL.
|
UrlGeometryInput(URL url,
Charset charset)
Construct a new instance for reading from the given URL with the
specified charset.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Get the input stream for reading from the input.
|
URL |
getUrl()
Get the input URL.
|
String |
toString() |
getCharset, getFileName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCharset, getFileName
public UrlGeometryInput(URL url)
url
- input urlpublic UrlGeometryInput(URL url, Charset charset)
url
- input URLcharset
- charset to use when reading contentpublic 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.