Package org.apache.cxf.attachment
Class DelegatingInputStream
java.lang.Object
java.io.InputStream
org.apache.cxf.attachment.DelegatingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable,Transferable
-
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()booleanisClosed()voidmark(int arg0) booleanintread()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, skipNBytes, transferTo
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
transferTo
- Specified by:
transferToin interfaceTransferable- Throws:
IOException
-
isClosed
public boolean isClosed() -
setClosed
public void setClosed(boolean closed) -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int arg0) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
setInputStream
-
getInputStream
-