< prev index next >
src/java.desktop/share/classes/javax/imageio/stream/ImageOutputStreamImpl.java
Print this page
*** 28,48 ****
import java.io.IOException;
import java.io.UTFDataFormatException;
import java.nio.ByteOrder;
/**
! * An abstract class implementing the <code>ImageOutputStream</code> interface.
* This class is designed to reduce the number of methods that must
* be implemented by subclasses.
*
*/
public abstract class ImageOutputStreamImpl
extends ImageInputStreamImpl
implements ImageOutputStream {
/**
! * Constructs an <code>ImageOutputStreamImpl</code>.
*/
public ImageOutputStreamImpl() {
}
public abstract void write(int b) throws IOException;
--- 28,48 ----
import java.io.IOException;
import java.io.UTFDataFormatException;
import java.nio.ByteOrder;
/**
! * An abstract class implementing the {@code ImageOutputStream} interface.
* This class is designed to reduce the number of methods that must
* be implemented by subclasses.
*
*/
public abstract class ImageOutputStreamImpl
extends ImageInputStreamImpl
implements ImageOutputStream {
/**
! * Constructs an {@code ImageOutputStreamImpl}.
*/
public ImageOutputStreamImpl() {
}
public abstract void write(int b) throws IOException;
*** 479,490 ****
/**
* 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 <code>write(int)</code> and
! * <code>write(byte[], int, int)</code> methods.
*
* @exception IOException if an I/O error occurs.
*/
protected final void flushBits() throws IOException {
checkClosed();
--- 479,490 ----
/**
* 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 {@code write(int)} and
! * {@code write(byte[], int, int)} methods.
*
* @exception IOException if an I/O error occurs.
*/
protected final void flushBits() throws IOException {
checkClosed();
< prev index next >