A Simple whois program in Java
The very simple example that follows opens a connection to a "whois" port on the InterNIC server, sends the command-line argument down the socket, and then prints the data that is
Read tutorialTHE TUTORIAL LIBRARY
The very simple example that follows opens a connection to a "whois" port on the InterNIC server, sends the command-line argument down the socket, and then prints the data that is
Read tutorialThe InetAddress class has no visible constructors. To create an InetAddress object, you have to use one of the available factory methods. Factory methods are merely a convention wh
Read tutorialThe following program illustrates how to use object serialization and deserialization. It begins by instantiating an object of class MyClass. This object has three instance variabl
Read tutorialStreamTokenizer defines several methods. In this example, we will use only a few. To reset the default set of delimiters, we will employ the resetSyntax() method. The default set o
Read tutorialThe PushbackReader class allows one or more characters to be returned to the input stream. This allows you to look ahead in the input stream. Here are its two constructors:
Read tutorialAs is the case with the byte-oriented stream, buffering an input character stream also provides the foundation required to support moving backward in the stream within the availabl
Read tutorialCharArrayWriter is an implementation of an output stream that uses an array as the destination. CharArrayWriter has two constructors, shown here:
Read tutorialCharArrayReader is an implementation of an input stream that uses a character array as the source. This class has two constructors, each of which requires a character array to prov
Read tutorialThe FileReader class creates a Reader that you can use to read the contents of a file. FileWriter creates a Writer that you can use to write to a file.
Read tutorialThe SequenceInputStream class allows you to concatenate multiple InputStreams. The construction of a SequenceInputStream is different from any other InputStream. A SequenceInputStr
Read tutorialThis simple java program describes how to use the different data types byte, short, int and long in Java.
Read tutorialIn JavaEE, a provider is a software component that provides an implementation of a particular API or service. Providers are typically used to extend the functionality of a JavaEE a
Read tutorialOne example today. A better developer tomorrow.