it.could.webdav
Class DAVInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byit.could.webdav.DAVInputStream

public class DAVInputStream
extends InputStream

A specialized InputStream to read from DAVResources.

This specialized InputStream never throws IOExceptions, but rather relies on the unchecked DAVException to notify the framework of the correct DAV errors.

Author:
Pier Fumagalli

Constructor Summary
protected DAVInputStream(DAVResource resource)
          Create a new DAVInputStream instance.
 
Method Summary
 int available()
          Return the number of bytes that can be read or skipped from this InputStream without blocking.
 void close()
          Return the number of bytes that can be read or skipped from this InputStream without blocking.
 void mark(int readlimit)
          Marks the current position in this InputStream.
 boolean markSupported()
          Tests if this InputStream supports the mark(int) and reset() methods.
 int read()
          Read data from this InputStream.
 int read(byte[] b)
          Read data from this InputStream.
 int read(byte[] b, int off, int len)
          Read data from this InputStream.
 void reset()
          Repositions this stream to the position at the time the mark(int) method was last called on this InputStream.
 long skip(long n)
          Skip a specified amount of data reading from this InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DAVInputStream

protected DAVInputStream(DAVResource resource)

Create a new DAVInputStream instance.

Method Detail

read

public int read()

Read data from this InputStream.


read

public int read(byte[] b)

Read data from this InputStream.


read

public int read(byte[] b,
                int off,
                int len)

Read data from this InputStream.


skip

public long skip(long n)

Skip a specified amount of data reading from this InputStream.


available

public int available()

Return the number of bytes that can be read or skipped from this InputStream without blocking.


close

public void close()

Return the number of bytes that can be read or skipped from this InputStream without blocking.


mark

public void mark(int readlimit)

Marks the current position in this InputStream.


reset

public void reset()

Repositions this stream to the position at the time the mark(int) method was last called on this InputStream.


markSupported

public boolean markSupported()

Tests if this InputStream supports the mark(int) and reset() methods.