Module java.base
Package java.io
✗
package java.io
Comparing jdk-20-ga and jdk-21+35
Provides for system input and output through data streams, serialization and the file system. Unless otherwise noted, passing a
null
argument to a constructor or method in any class or interface in this package will cause a NullPointerException
to be thrown. A pathname string passed as a String
argument to a constructor or method in any class or interface in this package will be interpreted as described in the class specification of File
. Object Serialization
Warning: Deserialization of untrusted data is inherently dangerous and should be avoided. Untrusted data should be carefully validated according to the "Serialization and Deserialization" section of the Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=secure_coding_guidelines_javase.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=secure_coding_guidelines_javase.Secure Coding Guidelines for Java SE.
- Java Object Serialization Specification
- Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=serialization_filter_guide.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=serialization_filter_guide.Serial FilteringMoved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=serialization_filter_guide.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=serialization_filter_guide. best practices
- Moved out of a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase20&id=serialver_tool_reference.Moved to a link with destination https://docs.oracle.com/pls/topic/lookup?ctx=javase21&id=serialver_tool_reference.The serialver tool
- Since:
- 1.0
- External Specifications
Types
- ✗ BufferedInputStream
- ✓ BufferedOutputStream
- ✗ BufferedReader
- ✗ BufferedWriter
- ✗ ByteArrayInputStream
- ✗ ByteArrayOutputStream
- ✓ CharArrayReader
- ✗ CharArrayWriter
- ✓ CharConversionException
- ✗ Closeable
- ✗ Console
- ✓ DataInput
- ✓ DataInputStream
- ✓ DataOutput
- ✓ DataOutputStream
- ✓ EOFException
- ✓ Externalizable
- ✗ File
- ✓ FileDescriptor
- ✓ FileFilter
- ✗ FileInputStream
- ✓ FileNotFoundException
- ✗ FileOutputStream
- ✗ FilePermission
- ✓ FileReader
- ✓ FileWriter
- ✓ FilenameFilter
- ✓ FilterInputStream
- ✓ FilterOutputStream
- ✓ FilterReader
- ✓ FilterWriter
- ✓ Flushable
- ✓ IOError
- ✓ IOException
- ✗ InputStream
- ✗ InputStreamReader
- ✓ InterruptedIOException
- ✓ InvalidClassException
- ✓ InvalidObjectException
- ✓ LineNumberInputStream
- ✓ LineNumberReader
- ✓ NotActiveException
- ✓ NotSerializableException
- ✓ ObjectInput
- ✗ ObjectInputFilter
- ✗ ObjectInputStream
- ✓ ObjectInputValidation
- ✓ ObjectOutput
- ✗ ObjectOutputStream
- ✗ ObjectStreamClass
- ✗ ObjectStreamConstants
- ✓ ObjectStreamException
- ✓ ObjectStreamField
- ✓ OptionalDataException
- ✓ OutputStream
- ✗ OutputStreamWriter
- ✓ PipedInputStream
- ✓ PipedOutputStream
- ✓ PipedReader
- ✓ PipedWriter
- ✗ PrintStream
- ✗ PrintWriter
- ✗ PushbackInputStream
- ✓ PushbackReader
- ✗ RandomAccessFile
- ✗ Reader
- ✗ SequenceInputStream
- ✗ Serial
- ✗ Serializable
- ✓ SerializablePermission
- ✓ StreamCorruptedException
- ✗ StreamTokenizer
- ✓ StringBufferInputStream
- ✓ StringReader
- ✗ StringWriter
- ✓ SyncFailedException
- ✓ UTFDataFormatException
- ✓ UncheckedIOException
- ✓ UnsupportedEncodingException
- ✓ WriteAbortedException
- ✗ Writer
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| java.io | 4 | 4 | 8 | |||||||
| BufferedInputStream | 5 | 1 | 6 | |||||||
| BufferedReader | 3 | 2 | 2 | 7 | ||||||
| BufferedWriter | 3 | 2 | 2 | 7 | ||||||
| ByteArrayInputStream | 4 | 2 | 6 | |||||||
| ByteArrayOutputStream | 4 | 3 | 12 | 19 | ||||||
| CharArrayWriter | 9 | 3 | 3 | 15 | ||||||
| Closeable | 2 | 2 | ||||||||
| Console | 3 | 4 | 9 | 16 | ||||||
| File | 21 | 6 | 13 | 40 | ||||||
| FileInputStream | 10 | 2 | 8 | 20 | ||||||
| FileOutputStream | 6 | 2 | 8 | 16 | ||||||
| FilePermission | 1 | 1 | ||||||||
| InputStream | 5 | 2 | 7 | |||||||
| InputStreamReader | 3 | 1 | 2 | 6 | ||||||
| ObjectInputFilter | 3 | 3 | ||||||||
| ObjectInputStream | 21 | 3 | 24 | |||||||
| ObjectOutputStream | 14 | 1 | 15 | |||||||
| ObjectStreamClass | 3 | 3 | ||||||||
| OutputStreamWriter | 9 | 3 | 5 | 17 | ||||||
| PrintStream | 9 | 3 | 6 | 18 | ||||||
| PrintWriter | 9 | 3 | 6 | 18 | ||||||
| PushbackInputStream | 4 | 4 | ||||||||
| RandomAccessFile | 12 | 6 | 15 | 33 | ||||||
| Reader | 4 | 4 | ||||||||
| SequenceInputStream | 4 | 2 | 6 | |||||||
| Serial | 3 | 3 | ||||||||
| Serializable | 3 | 12 | 3 | 18 | ||||||
| StreamTokenizer | 2 | 1 | 3 | |||||||
| StringWriter | 9 | 3 | 4 | 16 | ||||||
| Writer | 9 | 3 | 4 | 16 | ||||||
| Total | 3 | 197 | 71 | 106 | 377 | |||||