A.3. The java.io Package
This package contains classes for doing disk, stream, and memory I/O operations. Table A.6 shows the classes.
There are no direct mappings for the java.nio package even though asynchronous I/O is supported in C#.
Java | .NET |
---|---|
BufferedInputStream | System.IO.BufferedStream |
BufferedOutputStream | System.IO.BufferedStream |
BufferedReader | System.IO.StreamReader |
BufferedWriter | System.IO.StreamWriter |
ByteArrayInputStream | System.IO.MemoryStream |
ByteArrayOutputStream | System.IO.MemoryStream |
CharArrayReader | System.IO.StreamReader |
CharArrayWriter | System.IO.StreamWriter |
DataInputStream | System.IO.BinaryReader |
DataOutputStream | System.IO.BinaryWriter |
File | System.IO.File |
FileInputStream | System.IO.FileStream ... |
Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.