javax.imageio.stream

Class ImageOutputStreamImpl

Implemented Interfaces:
DataInput, DataOutput, ImageInputStream, ImageOutputStream
Known Direct Subclasses:
FileCacheImageOutputStream, FileImageOutputStream, MemoryCacheImageOutputStream

public abstract class ImageOutputStreamImpl
extends ImageInputStreamImpl
implements ImageOutputStream

Field Summary

Fields inherited from class javax.imageio.stream.ImageInputStreamImpl

bitOffset, byteOrder, flushedPos, streamPos

Constructor Summary

ImageOutputStreamImpl()

Method Summary

protected void
flushBits()
void
write(byte[] data)
abstract void
write(byte[] data, int offset, int len)
abstract void
write(int value)
void
writeBit(int bit)
void
writeBits(long bits, int numBits)
void
writeBoolean(boolean value)
void
writeByte(int value)
void
writeBytes(String data)
void
writeChar(int value)
void
writeChars(char[] data, int offset, int len)
void
writeChars(String data)
void
writeDouble(double value)
void
writeDoubles(double[] data, int offset, int len)
void
writeFloat(float value)
void
writeFloats(float[] data, int offset, int len)
void
writeInt(int value)
void
writeInts(int[] data, int offset, int len)
void
writeLong(long value)
void
writeLongs(long[] data, int offset, int len)
void
writeShort(int value)
void
writeShorts(short[] data, int offset, int len)
void
writeUTF(String value)

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, readUTF, readUnsignedByte, readUnsignedInt, readUnsignedShort, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

ImageOutputStreamImpl

public ImageOutputStreamImpl()

Method Details

flushBits

protected final void flushBits()
            throws IOException

write

public void write(byte[] data)
            throws IOException
Specified by:
write in interface ImageOutputStream
write in interface DataOutput

write

public abstract void write(byte[] data,
                           int offset,
                           int len)
            throws IOException
Specified by:
write in interface ImageOutputStream
write in interface DataOutput

write

public abstract void write(int value)
            throws IOException
Specified by:
write in interface ImageOutputStream
write in interface DataOutput

writeBit

public void writeBit(int bit)
            throws IOException
Specified by:
writeBit in interface ImageOutputStream

writeBits

public void writeBits(long bits,
                      int numBits)
            throws IOException
Specified by:
writeBits in interface ImageOutputStream

writeBoolean

public void writeBoolean(boolean value)
            throws IOException
Specified by:
writeBoolean in interface ImageOutputStream
writeBoolean in interface DataOutput

writeByte

public void writeByte(int value)
            throws IOException
Specified by:
writeByte in interface ImageOutputStream
writeByte in interface DataOutput

writeBytes

public void writeBytes(String data)
            throws IOException
Specified by:
writeBytes in interface ImageOutputStream
writeBytes in interface DataOutput

writeChar

public void writeChar(int value)
            throws IOException
Specified by:
writeChar in interface ImageOutputStream
writeChar in interface DataOutput

writeChars

public void writeChars(char[] data,
                       int offset,
                       int len)
            throws IOException
Specified by:
writeChars in interface ImageOutputStream

writeChars

public void writeChars(String data)
            throws IOException
Specified by:
writeChars in interface ImageOutputStream
writeChars in interface DataOutput

writeDouble

public void writeDouble(double value)
            throws IOException
Specified by:
writeDouble in interface ImageOutputStream
writeDouble in interface DataOutput

writeDoubles

public void writeDoubles(double[] data,
                         int offset,
                         int len)
            throws IOException
Specified by:
writeDoubles in interface ImageOutputStream

writeFloat

public void writeFloat(float value)
            throws IOException
Specified by:
writeFloat in interface ImageOutputStream
writeFloat in interface DataOutput

writeFloats

public void writeFloats(float[] data,
                        int offset,
                        int len)
            throws IOException
Specified by:
writeFloats in interface ImageOutputStream

writeInt

public void writeInt(int value)
            throws IOException
Specified by:
writeInt in interface ImageOutputStream
writeInt in interface DataOutput

writeInts

public void writeInts(int[] data,
                      int offset,
                      int len)
            throws IOException
Specified by:
writeInts in interface ImageOutputStream

writeLong

public void writeLong(long value)
            throws IOException
Specified by:
writeLong in interface ImageOutputStream
writeLong in interface DataOutput

writeLongs

public void writeLongs(long[] data,
                       int offset,
                       int len)
            throws IOException
Specified by:
writeLongs in interface ImageOutputStream

writeShort

public void writeShort(int value)
            throws IOException
Specified by:
writeShort in interface ImageOutputStream
writeShort in interface DataOutput

writeShorts

public void writeShorts(short[] data,
                        int offset,
                        int len)
            throws IOException
Specified by:
writeShorts in interface ImageOutputStream

writeUTF

public void writeUTF(String value)
            throws IOException
Specified by:
writeUTF in interface ImageOutputStream
writeUTF in interface DataOutput

ImageOutputStream.java -- Copyright (C) 2004 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.