rdf4j-postgis  Version 0.1.0.0
WKBRasterImageReader.InputStreamAdapter Class Reference
Inheritance diagram for WKBRasterImageReader.InputStreamAdapter:
Collaboration diagram for WKBRasterImageReader.InputStreamAdapter:

Public Member Functions

 InputStreamAdapter (final ImageInputStream input)
 Constructs a new input stream. More...
 
int read () throws IOException
 Reads the next byte of data from the input stream. More...
 
int read (final byte[] b) throws IOException
 Reads some number of bytes from the input stream. More...
 
int read (final byte[] b, final int off, final int len) throws IOException
 Reads up to. More...
 
long skip (final long n) throws IOException
 Skips over and discards. More...
 
boolean markSupported ()
 Returns always. More...
 
void mark (final int readlimit)
 Marks the current position in this input stream. More...
 
void reset () throws IOException
 Repositions this stream to the position at the time the. More...
 
void close () throws IOException
 Closes this input stream. More...
 

Private Attributes

final ImageInputStream input
 The wrapped image input stream. More...
 

Constructor & Destructor Documentation

◆ InputStreamAdapter()

InputStreamAdapter ( final ImageInputStream  input)

Constructs a new input stream.

167  {
168  this.input = input;
169  }
final ImageInputStream input
The wrapped image input stream.
Definition: WKBRasterImageReader.java:162

References WKBRasterImageReader.InputStreamAdapter.input.

Member Function Documentation

◆ close()

void close ( ) throws IOException

Closes this input stream.

Exceptions
IOExceptionif an I/O error occurs.
248  {
249  input.close();
250  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ mark()

void mark ( final int  readlimit)

Marks the current position in this input stream.

Exceptions
IOExceptionif an I/O error occurs.
227  {
228  input.mark();
229  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ markSupported()

boolean markSupported ( )

Returns always.

true

.

Exceptions
IOExceptionif an I/O error occurs.
217  {
218  return true;
219  }

◆ read() [1/3]

int read ( ) throws IOException

Reads the next byte of data from the input stream.

Exceptions
IOExceptionif an I/O error occurs.
177  {
178  return input.read();
179  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ read() [2/3]

int read ( final byte[]  b) throws IOException

Reads some number of bytes from the input stream.

Exceptions
IOExceptionif an I/O error occurs.
187  {
188  return input.read(b);
189  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ read() [3/3]

int read ( final byte[]  b,
final int  off,
final int  len 
) throws IOException

Reads up to.

len

bytes of data from the input stream.

Exceptions
IOExceptionif an I/O error occurs.
197  {
198  return input.read(b, off, len);
199  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ reset()

void reset ( ) throws IOException

Repositions this stream to the position at the time the.

void mark(final int readlimit)
Marks the current position in this input stream.
Definition: WKBRasterImageReader.java:227

method was last called.

Exceptions
IOExceptionif an I/O error occurs.
238  {
239  input.reset();
240  }

References WKBRasterImageReader.InputStreamAdapter.input.

◆ skip()

long skip ( final long  n) throws IOException

Skips over and discards.

n

bytes of data from this input stream.

Exceptions
IOExceptionif an I/O error occurs.
207  {
208  return input.skipBytes(n);
209  }

References WKBRasterImageReader.InputStreamAdapter.input.

Member Data Documentation

◆ input