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 int
available()
void
close()
InputStream
getInputStream()
boolean
isClosed()
void
mark(int arg0)
boolean
markSupported()
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, transferTo
-
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
transferTo
public void transferTo(File destinationFile) throws IOException
- Specified by:
transferTo
in interfaceTransferable
- Throws:
IOException
-
isClosed
public boolean isClosed()
-
setClosed
public void setClosed(boolean closed)
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
available
public int available() throws IOException
- 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
public int read(byte[] bytes, int arg1, int arg2) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] bytes) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
reset
public void reset() throws IOException
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
public long skip(long n) throws IOException
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
setInputStream
public void setInputStream(InputStream inputStream)
-
getInputStream
public InputStream getInputStream()
-
-