My Blog

My WordPress Blog

My Blog

My WordPress Blog

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 […]

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 […]

Scroll to top