This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.imageio.stream
class ImageOutputStreamImpl

java.lang.Object extended by javax.imageio.stream.ImageInputStreamImpl extended by javax.imageio.stream.ImageOutputStreamImpl
All Implemented Interfaces:
ImageInputStream, ImageOutputStream
Direct Known Subclasses:
FileCacheImageOutputStream, FileImageOutputStream, MemoryCacheImageOutputStream

public abstract class ImageOutputStreamImpl
extends ImageInputStreamImpl
implements ImageOutputStream

An abstract class implementing the ImageOutputStream interface. This class is designed to reduce the number of methods that must be implemented by subclasses.


Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary

          Constructs an ImageOutputStreamImpl.
 
Method Summary
protected void

          If the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one.
 void
write(byte[] b)

          
abstract void
write(byte[] b, int off, int len)

          
abstract void
write(int b)

          
 void
writeBit(int bit)

          
 void
writeBits(long bits, int numBits)

          
 void
writeBoolean(boolean v)

          
 void
writeByte(int v)

          
 void

          
 void
writeChar(int v)

          
 void
writeChars(char[] c, int off, int len)

          
 void

          
 void
writeDouble(double v)

          
 void
writeDoubles(double[] d, int off, int len)

          
 void
writeFloat(float v)

          
 void
writeFloats(float[] f, int off, int len)

          
 void
writeInt(int v)

          
 void
writeInts(int[] i, int off, int len)

          
 void
writeLong(long v)

          
 void
writeLongs(long[] l, int off, int len)

          
 void
writeShort(int v)

          
 void
writeShorts(short[] s, int off, int len)

          
 void

          
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, length, mark, read, read, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageOutputStreamImpl

public ImageOutputStreamImpl()
Constructs an ImageOutputStreamImpl.

Method Detail

flushBits

protected final void flushBits()
                        throws IOException
If the bit offset is non-zero, forces the remaining bits in the current byte to 0 and advances the stream position by one. This method should be called by subclasses at the beginning of the write(int) and write(byte[], int, int) methods.

Throws:
IOException - if an I/O error occurs.

write

public void write(byte[] b)
           throws IOException
Parameters:
b
Throws:
IOException

write

public abstract void write(byte[] b,
                           int off,
                           int len)
                    throws IOException
Parameters:
b
off
len
Throws:
IOException

write

public abstract void write(int b)
                    throws IOException
Parameters:
b
Throws:
IOException

writeBit

public void writeBit(int bit)
              throws IOException
Parameters:
bit
Throws:
IOException

writeBits

public void writeBits(long bits,
                      int numBits)
               throws IOException
Parameters:
bits
numBits
Throws:
IOException

writeBoolean

public void writeBoolean(boolean v)
                  throws IOException
Parameters:
v
Throws:
IOException

writeByte

public void writeByte(int v)
               throws IOException
Parameters:
v
Throws:
IOException

writeBytes

public void writeBytes(String s)
                throws IOException
Parameters:
s
Throws:
IOException

writeChar

public void writeChar(int v)
               throws IOException
Parameters:
v
Throws:
IOException

writeChars

public void writeChars(char[] c,
                       int off,
                       int len)
                throws IOException
Parameters:
c
off
len
Throws:
IOException

writeChars

public void writeChars(String s)
                throws IOException
Parameters:
s
Throws:
IOException

writeDouble

public void writeDouble(double v)
                 throws IOException
Parameters:
v
Throws:
IOException

writeDoubles

public void writeDoubles(double[] d,
                         int off,
                         int len)
                  throws IOException
Parameters:
d
off
len
Throws:
IOException

writeFloat

public void writeFloat(float v)
                throws IOException
Parameters:
v
Throws:
IOException

writeFloats

public void writeFloats(float[] f,
                        int off,
                        int len)
                 throws IOException
Parameters:
f
off
len
Throws:
IOException

writeInt

public void writeInt(int v)
              throws IOException
Parameters:
v
Throws:
IOException

writeInts

public void writeInts(int[] i,
                      int off,
                      int len)
               throws IOException
Parameters:
i
off
len
Throws:
IOException

writeLong

public void writeLong(long v)
               throws IOException
Parameters:
v
Throws:
IOException

writeLongs

public void writeLongs(long[] l,
                       int off,
                       int len)
                throws IOException
Parameters:
l
off
len
Throws:
IOException

writeShort

public void writeShort(int v)
                throws IOException
Parameters:
v
Throws:
IOException

writeShorts

public void writeShorts(short[] s,
                        int off,
                        int len)
                 throws IOException
Parameters:
s
off
len
Throws:
IOException

writeUTF

public void writeUTF(String s)
              throws IOException
Parameters:
s
Throws:
IOException


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.