- java.lang.Object
-
- java.io.OutputStream
-
- cn.mcres.karlatemp.mxlib.util.RAFOutputStream
-
- 所有已实现的接口:
Closeable
,DataOutput
,Flushable
,AutoCloseable
public class RAFOutputStream extends OutputStream implements DataOutput
A output stream of RandomAccessFile- 从以下版本开始:
- 2.12
-
-
构造器概要
构造器 构造器 说明 RAFOutputStream(RandomAccessFile raf)
RAFOutputStream(RandomAccessFile raf, boolean closeRAF, boolean autoSetLength)
The constructor
-
方法概要
修饰符和类型 方法 说明 void
close()
void
write(@org.jetbrains.annotations.NotNull byte[] b)
void
write(@org.jetbrains.annotations.NotNull byte[] b, int off, int len)
void
write(int b)
void
writeBoolean(boolean v)
void
writeByte(int v)
void
writeBytes(@NotNull String s)
void
writeChar(int v)
void
writeChars(@NotNull String s)
void
writeDouble(double v)
void
writeFloat(float v)
void
writeInt(int v)
void
writeLong(long v)
void
writeShort(int v)
void
writeUTF(@NotNull String s)
-
从类继承的方法 java.io.OutputStream
flush, nullOutputStream
-
-
-
-
构造器详细资料
-
RAFOutputStream
public RAFOutputStream(RandomAccessFile raf, boolean closeRAF, boolean autoSetLength)
The constructor
-
RAFOutputStream
public RAFOutputStream(RandomAccessFile raf)
-
-
方法详细资料
-
writeBoolean
public void writeBoolean(boolean v) throws IOException
- 指定者:
writeBoolean
在接口中DataOutput
- 抛出:
IOException
-
writeByte
public void writeByte(int v) throws IOException
- 指定者:
writeByte
在接口中DataOutput
- 抛出:
IOException
-
writeShort
public void writeShort(int v) throws IOException
- 指定者:
writeShort
在接口中DataOutput
- 抛出:
IOException
-
writeChar
public void writeChar(int v) throws IOException
- 指定者:
writeChar
在接口中DataOutput
- 抛出:
IOException
-
writeInt
public void writeInt(int v) throws IOException
- 指定者:
writeInt
在接口中DataOutput
- 抛出:
IOException
-
writeLong
public void writeLong(long v) throws IOException
- 指定者:
writeLong
在接口中DataOutput
- 抛出:
IOException
-
writeFloat
public void writeFloat(float v) throws IOException
- 指定者:
writeFloat
在接口中DataOutput
- 抛出:
IOException
-
writeDouble
public void writeDouble(double v) throws IOException
- 指定者:
writeDouble
在接口中DataOutput
- 抛出:
IOException
-
writeBytes
public void writeBytes(@NotNull @NotNull String s) throws IOException
- 指定者:
writeBytes
在接口中DataOutput
- 抛出:
IOException
-
writeChars
public void writeChars(@NotNull @NotNull String s) throws IOException
- 指定者:
writeChars
在接口中DataOutput
- 抛出:
IOException
-
writeUTF
public void writeUTF(@NotNull @NotNull String s) throws IOException
- 指定者:
writeUTF
在接口中DataOutput
- 抛出:
IOException
-
write
public void write(int b) throws IOException
- 指定者:
write
在接口中DataOutput
- 指定者:
write
在类中OutputStream
- 抛出:
IOException
-
write
public void write(@NotNull @org.jetbrains.annotations.NotNull byte[] b, int off, int len) throws IOException
- 指定者:
write
在接口中DataOutput
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
write
public void write(@NotNull @org.jetbrains.annotations.NotNull byte[] b) throws IOException
- 指定者:
write
在接口中DataOutput
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 覆盖:
close
在类中OutputStream
- 抛出:
IOException
-
-