Package com.twelvemonkeys.imageio.util
Class IIOOutputStreamAdapter
- java.lang.Object
-
- java.io.OutputStream
-
- com.twelvemonkeys.imageio.util.IIOOutputStreamAdapter
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
class IIOOutputStreamAdapter extends java.io.OutputStream
IIOOutputStreamAdapter- Version:
- $Id: IIOOutputStreamAdapter.java,v 1.0 Sep 26, 2007 11:50:38 AM haraldk Exp$
-
-
Field Summary
Fields Modifier and Type Field Description private javax.imageio.stream.ImageOutputStream
output
-
Constructor Summary
Constructors Constructor Description IIOOutputStreamAdapter(javax.imageio.stream.ImageOutputStream pOutput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
assertOpen()
void
close()
void
flush()
void
write(byte[] pBytes)
void
write(byte[] pBytes, int pOffset, int pLength)
void
write(int pByte)
-
-
-
Method Detail
-
write
public void write(byte[] pBytes) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] pBytes, int pOffset, int pLength) throws java.io.IOException
- Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(int pByte) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
assertOpen
private void assertOpen() throws java.io.IOException
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
-