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 TypeMethodDescriptionint
void
close()
boolean
isClosed()
void
mark
(int arg0) boolean
int
read()
int
read
(byte[] bytes) int
read
(byte[] bytes, int arg1, int arg2) void
reset()
void
setClosed
(boolean closed) void
setInputStream
(InputStream inputStream) long
skip
(long n) void
transferTo
(File destinationFile) Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
transferTo
- Specified by:
transferTo
in interfaceTransferable
- Throws:
IOException
-
isClosed
public boolean isClosed() -
setClosed
public void setClosed(boolean closed) -
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int arg0) - Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
setInputStream
-
getInputStream
-