Author: saqibkhan
-
FileInputStream
Introduction The Java.io.FileInputStream class obtains input bytes from a file in a file system. What files are available depends on the host environment. Following are the important points about FileInputStream − Class declaration Following is the declaration for Java.io.FileInputStream class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified expert to boost your career.…
-
FileDescriptor
Introduction The Java.io.FileDescriptor class instances serve as an opaque handle to the underlying machine-specific structure representing an open file, an open socket, or another source or sink of bytes. Following are the important points about FileDescriptor − Class declaration Following is the declaration for Java.io.FileDescriptor class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a…
-
Java – File Class
Java File Class Java File class represents the files and directory pathnames in an abstract manner. This class is used for creation of files and directories, file searching, file deletion, etc. The File object represents the actual file/directory on the disk. File Class Constructors Following is the list of constructors to create a File object.…
-
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.…