public interface ObjectOutput extends DataOutput, AutoCloseable
InputStream
, ObjectOutputStream
, ObjectInputStream
修飾子と型 | メソッド | 説明 |
---|---|---|
void |
close() |
ストリームを閉じます。
|
void |
flush() |
ストリームをフラッシュします。
|
void |
write(byte[] b) |
バイト配列を書き込みます。
|
void |
write(byte[] b, int off, int len) |
バイト配列の一部を書き込みます。
|
void |
write(int b) |
バイトを書き込みます。
|
void |
writeObject(Object obj) |
ベースとなる記憶域またはストリームにオブジェクトを書き込みます。
|
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
void writeObject(Object obj) throws IOException
obj
- 書き込まれるオブジェクトIOException
- 通常の入出力関連の例外が発生した場合。void write(int b) throws IOException
write
、インタフェースDataOutput
b
- バイトIOException
- 入出力エラーが発生した場合。void write(byte[] b) throws IOException
write
、インタフェースDataOutput
b
- 書き込まれるデータIOException
- 入出力エラーが発生した場合。void write(byte[] b, int off, int len) throws IOException
write
、インタフェースDataOutput
b
- 書き込まれるデータoff
- データ内の開始オフセットlen
- 書き込まれるバイト数IOException
- 入出力エラーが発生した場合。void flush() throws IOException
IOException
- 入出力エラーが発生した場合。void close() throws IOException
close
、インタフェースAutoCloseable
IOException
- 入出力エラーが発生した場合。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。