Category: 09. Java.io package

  • DataOutputStream 

    Introduction The Java.io.DataOutputStream class lets an application write primitive Java data types to an output stream in a portable way. An application can then use a data input stream to read the data back in. Class declaration Following is the declaration for Java.io.DataOutputStream class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert…

  • DataInputStream 

    Introduction The Java.io.DataInputStream class lets an application read primitive Java data types from an underlying input stream in a machine-independent way.Following are the important points about DataInputStream − Class declaration Following is the declaration for Java.io.DataInputStream class − public class DataInputStream extends FilterInputStream implements DataInput Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert…

  • Console 

    Introduction The Java.io.Console class provides methods to access the character-based console device, if any, associated with the current Java virtual machine. Class declaration Following is the declaration for Java.io.Console class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Class methods Sr.No. Method & Description 1 void flush()This method…

  • CharArrayWriter 

    Introduction The Java.io.CharArrayWriter class implements a character buffer that can be used as an Writer. The buffer automatically grows when data is written to the stream. Class declaration Following is the declaration for Java.io.CharArrayWriter class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following are the fields…

  • CharArrayReader 

    Introduction The Java.io.CharArrayReader class implements a character buffer that can be used as a character-input stream. Class declaration Following is the declaration for Java.io.CharArrayReader class − public class CharArrayReader extends Reader Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career. Field Following are the fields for Java.io.CharArrayReader class − Class constructors Sr.No.…

  • ByteArrayOutputStream 

    Introduction The Java.io.ByteArrayOutputStream class implements an output stream in which the data is written into a byte array. The buffer automatically grows as data is written to it.Following are the important points about ByteArrayOutputStream − Class declaration Following is the declaration for Java.io.ByteArrayOutputStream class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert…

  • ByteArrayInputStream 

    Introduction The java.io.ByteArrayInputStream class contains an internal buffer that contains bytes that may be read from the stream. An internal counter keeps track of the next byte to be supplied by the read method.Following are the important points about ByteArrayInputStream − Class declaration Following is the declaration for java.io.ByteArrayInputStream class − Learn Java in-depth with real-world projects through our Java certification course.…

  • BufferedWriter 

    Introduction The Java.io.BufferedWriter class writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings.Following are the important points about BufferedWriter − Class declaration Following is the declaration for Java.io.BufferedWriter class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost…

  • BufferedReader 

    Introduction The Java.io.BufferedReader class reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines.Following are the important points about BufferedReader − Class declaration Following is the declaration for Java.io.BufferedReader class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your…

  • BufferedOutputStream 

    Introduction The Java.io.BufferedOutputStream class implements a buffered output stream. By setting up such an output stream, an application can write bytes to the underlying output stream without necessarily causing a call to the underlying system for each byte written. Class declaration Following is the declaration for Java.io.BufferedOutputStream class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and…