类 BinOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- cn.mcres.gyhhy.MXLib.io.BinOutputStream
-
- 所有已实现的接口:
Closeable
,Flushable
,AutoCloseable
public class BinOutputStream extends OutputStream
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static interface
BinOutputStream.BinWriter
static interface
BinOutputStream.BytesGetter
-
构造器概要
构造器 构造器 说明 BinOutputStream(OutputStream bin)
-
方法概要
修饰符和类型 方法 说明 void
close()
void
flush()
static void
main(String[] test)
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
void
write(BinOutputStream.BinWriter wr)
void
write(BinOutputStream.BytesGetter gt)
void
writeBoolean(boolean b)
void
writeByte(byte b)
void
writeBytes(byte[] bytes)
void
writeDouble(double d)
void
writeFromInputStream(InputStream io)
void
writeImage(RenderedImage im, String formatName)
void
writeInt(int i)
void
writeInteger(int i)
void
writeLong(long l)
void
writeShort(short s)
void
writeString(String string)
void
writeString(String string, Charset charset)
-
从类继承的方法 java.io.OutputStream
nullOutputStream
-
-
-
-
构造器详细资料
-
BinOutputStream
public BinOutputStream(OutputStream bin)
-
-
方法详细资料
-
write
public void write(BinOutputStream.BinWriter wr) throws IOException
- 抛出:
IOException
-
writeImage
public void writeImage(RenderedImage im, String formatName) throws IOException
- 抛出:
IOException
-
writeFromInputStream
public void writeFromInputStream(InputStream io) throws IOException
- 抛出:
IOException
-
write
public void write(BinOutputStream.BytesGetter gt) throws IOException
- 抛出:
IOException
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中OutputStream
- 抛出:
IOException
-
writeBoolean
public void writeBoolean(boolean b) throws IOException
- 抛出:
IOException
-
write
public void write(int b) throws IOException
- 指定者:
write
在类中OutputStream
- 抛出:
IOException
-
flush
public void flush() throws IOException
- 指定者:
flush
在接口中Flushable
- 覆盖:
flush
在类中OutputStream
- 抛出:
IOException
-
write
public void write(byte[] b) throws IOException
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
writeString
public void writeString(String string) throws IOException
- 抛出:
IOException
-
writeBytes
public void writeBytes(byte[] bytes) throws IOException
- 抛出:
IOException
-
writeString
public void writeString(String string, Charset charset) throws IOException
- 抛出:
IOException
-
writeInt
public final void writeInt(int i) throws IOException
- 抛出:
IOException
-
writeLong
public void writeLong(long l) throws IOException
- 抛出:
IOException
-
writeShort
public void writeShort(short s) throws IOException
- 抛出:
IOException
-
writeDouble
public void writeDouble(double d) throws IOException
- 抛出:
IOException
-
writeInteger
public void writeInteger(int i) throws IOException
- 抛出:
IOException
-
writeByte
public void writeByte(byte b) throws IOException
- 抛出:
IOException
-
-