public class ByteArrayImageOutputStream
extends javax.imageio.stream.ImageOutputStreamImpl
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
| Constructor and Description |
|---|
ByteArrayImageOutputStream() |
ByteArrayImageOutputStream(byte[] buf) |
ByteArrayImageOutputStream(byte[] buf,
java.nio.ByteOrder byteOrder) |
ByteArrayImageOutputStream(byte[] buf,
int offset,
int length,
java.nio.ByteOrder byteOrder) |
ByteArrayImageOutputStream(java.nio.ByteOrder byteOrder) |
ByteArrayImageOutputStream(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
clear() |
void |
close() |
byte[] |
getBuffer() |
long |
getStreamPosition() |
long |
length() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long pos) |
long |
skip(long n) |
byte[] |
toByteArray() |
void |
toImageOutputStream(javax.imageio.stream.ImageOutputStream out) |
void |
toOutputStream(java.io.OutputStream out) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flushBits, writeBit, writeBits, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeDoubles, writeFloat, writeFloats, writeInt, writeInts, writeLong, writeLongs, writeShort, writeShorts, writeUTFcheckClosed, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, isCached, isCachedFile, isCachedMemory, mark, 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, setBitOffset, setByteOrder, skipBytes, skipBytesclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, getBitOffset, getByteOrder, getFlushedPosition, isCached, isCachedFile, isCachedMemory, mark, 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, setBitOffset, setByteOrder, skipBytes, skipBytespublic ByteArrayImageOutputStream()
public ByteArrayImageOutputStream(int initialCapacity)
public ByteArrayImageOutputStream(byte[] buf)
public ByteArrayImageOutputStream(byte[] buf,
java.nio.ByteOrder byteOrder)
public ByteArrayImageOutputStream(byte[] buf,
int offset,
int length,
java.nio.ByteOrder byteOrder)
public ByteArrayImageOutputStream(java.nio.ByteOrder byteOrder)
public int read()
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in interface javax.imageio.stream.ImageInputStreamread in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic long skip(long n)
public int available()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface javax.imageio.stream.ImageInputStreamclose in class javax.imageio.stream.ImageInputStreamImplpublic long getStreamPosition()
throws java.io.IOException
getStreamPosition in interface javax.imageio.stream.ImageInputStreamgetStreamPosition in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic void seek(long pos)
throws java.io.IOException
seek in interface javax.imageio.stream.ImageInputStreamseek in class javax.imageio.stream.ImageInputStreamImpljava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface javax.imageio.stream.ImageOutputStreamwrite in class javax.imageio.stream.ImageOutputStreamImpljava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface javax.imageio.stream.ImageOutputStreamwrite in class javax.imageio.stream.ImageOutputStreamImpljava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface java.io.DataOutputwrite in interface javax.imageio.stream.ImageOutputStreamwrite in class javax.imageio.stream.ImageOutputStreamImpljava.io.IOExceptionpublic void toOutputStream(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic void toImageOutputStream(javax.imageio.stream.ImageOutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic byte[] toByteArray()
public byte[] getBuffer()
public long length()
length in interface javax.imageio.stream.ImageInputStreamlength in class javax.imageio.stream.ImageInputStreamImplpublic void clear()
Copyright © 2022. All Rights Reserved.