io - ByteStream(ObjectInputStream, ObjectOutputStream, DataInputStream, DataOutputStream)

apayaya·2023년 3월 2일
0

java - IO, File, Network

목록 보기
2/2

ObjectOutputStream

  • 객체를 직렬화(serialization) 하는 역할

Constructors

  • ObjectOutputStream(OutputStream)

methods

  • .writeObject(Object) -> void
  • .writeBoolean(boolean) -> void

ObjectInputStream

Constructors

  • ObjectInputStream(InputStream)

methods

  • .readBoolean() -> boolean
  • .readChar() -> char
  • .readDouble() -> double
  • .readObject() -> Object

DataInputStream

methods

  • readBoolean() -> boolean
  • readByte() -> byte
  • readChar() -> char
  • readUTF() -> String

DataOutputStream

methods

  • writeBoolean(boolean) -> void
  • writeByte(byte) -> void
  • writeChar(char) -> void
  • writeUTF(String) -> void
profile
java 정리

0개의 댓글