Category: 09. Java.io package

  • Writer 

    Introduction The Java.io.Writer class is a abstract class for writing to character streams. Class declaration Following is the declaration for Java.io.Writer 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 for Java.io.Writer class − Class constructors Sr.No. Constructor & Description 1 protected Writer()This creates a…

  • StringWriter

    Introduction The Java.io.StringWriter class is a character stream that collects its output in a string buffer, which can then be used to construct a string.Closing a StringWriter has no effect. The methods in this class can be called after the stream has been closed without generating an IOException. Class declaration Following is the declaration for Java.io.StringWriter class − Learn Java in-depth…

  • StringReader

    Introduction The Java.io.StringReader class is a character stream whose source is a string. Class declaration Following is the declaration for Java.io.StringReader 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 for Java.io.StringReader class − Class constructors Sr.No. Constructor & Description 1 StringReader(String s)This creates a…

  • StringBufferInputStream 

    Introduction The Java.io.StringBufferInputStream class allows an application to create an input stream in which the bytes read are supplied by the contents of a string. Applications can also read bytes from a byte array by using a ByteArrayInputStream.Only the low eight bits of each character in the string are used by this class. This class has been…

  • StreamTokenizer 

    Introduction The Java.io.StreamTokenizer class takes an input stream and parses it into “tokens”, allowing the tokens to be read one at a time. The stream tokenizer can recognize identifiers, numbers, quoted strings, and various comment styles. Class declaration Following is the declaration for Java.io.StreamTokenizer class − Learn Java in-depth with real-world projects through our Java certification course. Enroll and become a certified…

  • SerializablePermission 

    Introduction The Java.io.SerializablePermission class is for Serializable permissions. A SerializablePermission contains a name (also referred to as a “target name”) but no actions list; you either have the named permission or you don’t.The target name is the name of the Serializable permission. Class declaration Following is the declaration for Java.io.SerializablePermission class − Learn Java in-depth with real-world projects through our Java certification…

  • SequenceInputStream 

    Introduction The Java.io.SequenceInputStream class represents the logical concatenation of other input streams. It starts out with an ordered collection of input streams and reads from the first one until end of file is reached, whereupon it reads from the second one, and so on, until end of file is reached on the last of the contained input…

  • Reader 

    Introduction The Java.io.Reader class is a abstract class for reading character streams. Class declaration Following is the declaration for Java.io.Reader class − public class Reader extends Object implements DataOutput, DataInput, Closeable 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.Reader class − Class constructors Sr.No.…

  • RandomAccessFile 

    Introduction The Java.io.RandomAccessFile class file behaves like a large array of bytes stored in the file system.Instances of this class support both reading and writing to a random access file. Class declaration Following is the declaration for Java.io.RandomAccessFile 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…

  • PushbackReader 

    Introduction The Java.io.PushbackReader class is a character-stream reader that allows characters to be pushed back into the stream. Class declaration Following is the declaration for Java.io.PushbackReader 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 for Java.io.PushbackReader class − Class constructors Sr.No. Constructor & Description…