public class AcrDataSource extends DataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY
Constructor and Description |
---|
AcrDataSource(AcrConnection connection,
String uri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getLength()
Returns the length of the stream returned by
getInputStream
in bytes, if known. |
InputStream |
getRawInputStream()
Provides a new InputStream for this data source.
|
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getMarkWorkaround, getName, getPosition, getRawLength, getSystemId, getURL, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toString
public AcrDataSource(AcrConnection connection, String uri)
connection
- connection objecturi
- ivorn of remote filepublic long getLength()
DataSource
getInputStream
in bytes, if known.
A return value of -1 indicates that the length is unknown.
The return value of this method may change from -1 to a positive
value during the life of this object if it happens to work out
how long it is.getLength
in class DataSource
public InputStream getRawInputStream() throws IOException
DataSource
getRawInputStream
in class DataSource
IOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.