Author: saqibkhan
-
Locale Class
A Locale class object represents a specific geographical/political/cultural region. Any operation requiring a Locale to perform its task is called locale-sensitive operation and uses the Locale to master information relative to the user. For example, displaying a number is a locale-sensitive operation. The number should be formatted as per the customs and conventions of the…
-
Environment Setup
Local Environment Setup If you are still willing to set up your environment for Java programming language, then this section guides you on how to download and set up Java on your machine. Following are the steps to set up the environment. Java SE is freely available from the link Download Java. You can download a…
-
Overview
Internationalization Internationalization or I18N refers to the capability of an Application to be able to serve users in multiple and different languages. Java has in-built support for Internationalization. Java also provides formatting of numbers, currencies and adjustment of date and time accordingly. Java Internationalization helps to make a java application handle different languages, number formats,…
-
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…