Class UrlGeometryInput
java.lang.Object
org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
org.apache.commons.geometry.io.core.input.UrlGeometryInput
- All Implemented Interfaces:
GeometryIOMetadata
,GeometryInput
GeometryInput
implementation for reading content from a URL.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUrlGeometryInput
(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. -
Method Summary
Methods inherited from class org.apache.commons.geometry.io.core.AbstractGeometryIOMetadata
getCharset, getFileName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.geometry.io.core.GeometryIOMetadata
getCharset, getFileName
-
Field Details
-
url
Input URL.
-
-
Constructor Details
-
UrlGeometryInput
Construct a new instance for reading from the given URL.- Parameters:
url
- input url
-
UrlGeometryInput
Construct a new instance for reading from the given URL with the specified charset.- Parameters:
url
- input URLcharset
- charset to use when reading content
-
-
Method Details
-
getUrl
Get the input URL.- Returns:
- input URL
-
getInputStream
Get the input stream for reading from the input.The returned input stream is buffered.
- Specified by:
getInputStream
in interfaceGeometryInput
- Returns:
- input stream for reading from the input
-
toString
- Overrides:
toString
in classAbstractGeometryIOMetadata
-