UDP Datagram sample program in Java
Datagrams are bundles of information passed between machines. They are somewhat like a hard throw from a well-trained but blindfolded catcher to the third baseman. Once the datagra
Read tutorialTHE TUTORIAL LIBRARY
Datagrams are bundles of information passed between machines. They are somewhat like a hard throw from a well-trained but blindfolded catcher to the third baseman. Once the datagra
Read tutorialURLConnection is a general-purpose class for accessing the attributes of a remote resource. Once you make a connection to a remote server, you can use URLConnection to inspect the
Read tutorialThe 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 tutorialOne example today. A better developer tomorrow.