Java Reference
In-Depth Information
<?xml version=”1.0” encoding=”windows-1252” standalone=”no”?>
<!DOCTYPE log SYSTEM “logger.dtd”>
<log>
<record>
<date>2002-12-12T00:14:02</date>
<millis>1039677242522</millis>
<sequence>0</sequence>
<logger>my.log</logger>
<level>INFO</level>
<class>LoggingDemo</class>
<method>main</method>
<thread>10</thread>
<message>Our first logging message</message>
</record>
<record>
<date>2002-12-12T00:14:03</date>
<millis>1039677243083</millis>
<sequence>1</sequence>
<logger>my.log</logger>
<level>SEVERE</level>
<class>LoggingDemo</class>
<method>main</method>
<thread>10</thread>
<message>Something terrible happened.</message>
</record>
</log>
In the release of version 1.4, a new API referred to as the new I/O (NIO)
APIs was added to the J2SE. The API has various packages, including:
java.nio. This consists of classes designed to improve the
performance of buffering in I/O operations.
java.nio.channels. This package contains classes and interfaces
for defining channels, connections to physical devices such as
files or network sockets.
java.nio.charset. This defines classes for working with charsets,
encoders, and decoders, all of which define mappings between
bytes and Unicode characters.
javax.util.regex. This defines two classes, Matcher and Pattern, for
matching character sequences against patterns, where the
pattern represents a regular expression.
Using the new I/O APIs is beyond the scope of an introductory Java
course, but if you are interested in using them, a good place to start is the
J2SE documentation.
Search WWH ::




Custom Search