Package com.adobe.internal.io
Class DataBufferByteWriter
- java.lang.Object
-
- java.awt.image.DataBuffer
-
- com.adobe.internal.io.DataBufferByteWriter
-
public class DataBufferByteWriter extends java.awt.image.DataBuffer
An implementation of the DataBuffer abstract class which wraps a ByteWriter inside it. All the data written to the DataBuffer will actually be read from and written to the byteWriter. This class is used for the BufferedImages which has the raster data in the DataBuffers.
-
-
Constructor Summary
Constructors Constructor Description DataBufferByteWriter(ByteWriter byteWriter, int dataType, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
getElem(int bank, int i)
long
length()
void
setElem(int bank, int i, int val)
-
-
-
Constructor Detail
-
DataBufferByteWriter
public DataBufferByteWriter(ByteWriter byteWriter, int dataType, int size)
- Parameters:
byteWriter
-dataType
-size
-
-
-
Method Detail
-
getElem
public int getElem(int bank, int i)
- Specified by:
getElem
in classjava.awt.image.DataBuffer
- See Also:
DataBuffer.getElem(int, int)
-
setElem
public void setElem(int bank, int i, int val)
- Specified by:
setElem
in classjava.awt.image.DataBuffer
- See Also:
DataBuffer.setElem(int, int, int)
-
length
public long length() throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
ByteReader.length()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
- See Also:
ByteReader.close()
-
-