Package ch.systemsx.cisd.base.io
Class AdapterOutputStreamToIOutputStream
- java.lang.Object
-
- ch.systemsx.cisd.base.io.AdapterOutputStreamToIOutputStream
-
- All Implemented Interfaces:
IOutputStream
,ISynchronizable
,java.lang.AutoCloseable
public class AdapterOutputStreamToIOutputStream extends java.lang.Object implements IOutputStream
An adapter forOutputStream
that implementsIOutputStream
.
-
-
Constructor Summary
Constructors Constructor Description AdapterOutputStreamToIOutputStream(java.io.OutputStream delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
equals(java.lang.Object obj)
void
flush()
int
hashCode()
void
synchronize()
Performs a synchronization of the resource.java.lang.String
toString()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
-
-
-
Method Detail
-
write
public void write(byte[] b, int off, int len) throws IOExceptionUnchecked
- Specified by:
write
in interfaceIOutputStream
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.write(byte[], int, int)
-
write
public void write(byte[] b) throws IOExceptionUnchecked
- Specified by:
write
in interfaceIOutputStream
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.write(byte[])
-
write
public void write(int b) throws IOExceptionUnchecked
- Specified by:
write
in interfaceIOutputStream
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.write(int)
-
close
public void close() throws IOExceptionUnchecked
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceIOutputStream
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.close()
-
flush
public void flush() throws IOExceptionUnchecked
- Specified by:
flush
in interfaceIOutputStream
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.flush()
-
synchronize
public void synchronize() throws IOExceptionUnchecked
Description copied from interface:ISynchronizable
Performs a synchronization of the resource.- Specified by:
synchronize
in interfaceIOutputStream
- Specified by:
synchronize
in interfaceISynchronizable
- Throws:
IOExceptionUnchecked
- See Also:
OutputStream.flush()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-