程序员地瓜哥的小屋

Java中的IO流

2021-07-03  本文已影响0人  CodingDGSun

Java中的IO流分类

UML关系图如下所示

PantUML语法
A <|-- B //B继承A
C <|... D //D实现了C
@startuml

abstract class InputStream{
}

class BufferedInputStream{
}

class FilterInputStream{
}

class DataInputStream{
}

interface DataInput{
}

abstract class Reader{
}

class BufferedReader{
}

class InputStreamReader{
}

FilterInputStream <|-- BufferedInputStream
InputStream <|-- FilterInputStream

FilterInputStream <|-- DataInputStream
DataInput <|.. DataInputStream

Reader <|-- BufferedReader

Reader <|-- InputStreamReader

@enduml
15_01

UML关系图如下所示

PantUML语法
A <|-- B //B继承A
C <|... D //D实现了C
@startuml

abstract class OutputStream{
  }

class BufferedOutputStream{
  }

class FilterOutputStream{
  }

class DataOutputStream{
  }

class PrintStream{
  }

abstract class Writer{
  }

class BufferedWriter{
  }

class OutputStreamWriter{
  }

class PrintWriter{
  }

FilterOutputStream <|-- BufferedOutputStream
OutputStream <|-- FilterOutputStream

FilterOutputStream <|-- DataOutputStream
DataOutput <|.. DataOutputStream

FilterOutputStream <|-- PrintStream

Writer <|-- BufferedWriter

Writer <|-- OutputStreamWriter

Writer <|-- PrintWriter

@enduml
15_02
上一篇下一篇

猜你喜欢

热点阅读