com.sapportals.wcm.protocol.webdav
Class SizeConstrainedInputStream
java.lang.Object
java.io.InputStream
com.sapportals.wcm.protocol.webdav.SizeConstrainedInputStream
- All Implemented Interfaces:
- Closeable
public class SizeConstrainedInputStream
- extends InputStream
Wraps an input stream, implementing a size limit.
Copyright (c) SAP AG 2001-2003
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeConstrainedInputStream
public SizeConstrainedInputStream(InputStream baseStream,
long limit)
available
public int available()
throws IOException
- Overrides:
available in class InputStream
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip in class InputStream
- Throws:
IOException
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2011 SAP AG Complete Copyright Notice