Package org.apache.cxf.attachment
Class DelegatingInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.cxf.attachment.DelegatingInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Transferable
public class DelegatingInputStream extends InputStream implements Transferable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()InputStreamgetInputStream()booleanisClosed()voidmark(int arg0)booleanmarkSupported()intread()intread(byte[] bytes)intread(byte[] bytes, int arg1, int arg2)voidreset()voidsetClosed(boolean closed)voidsetInputStream(InputStream inputStream)longskip(long n)voidtransferTo(File destinationFile)-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
transferTo
public void transferTo(File destinationFile) throws IOException
- Specified by:
transferToin interfaceTransferable- Throws:
IOException
-
isClosed
public boolean isClosed()
-
setClosed
public void setClosed(boolean closed)
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int arg0)
- Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
read
public int read(byte[] bytes, int arg1, int arg2) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] bytes) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
setInputStream
public void setInputStream(InputStream inputStream)
-
getInputStream
public InputStream getInputStream()
-
-