Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.net: Javadoc index of package java.net.


Package Samples:

java.net

Classes:

URI: A URI instance represents that defined by RFC3986 , with some deviations. At its highest level, a URI consists of: [ scheme : ] scheme-specific-part [ # fragment ] where # and : are literal characters, and those parts enclosed in square brackets are optional. There are two main types of URI. An opaque URI is one which just consists of the above three parts, and is not further defined. An example of such a URI would be mailto: URI. In contrast, hierarchical URIs give further definition to the scheme-specific part, so as represent some part of a hierarchical structure. [ // authority ][ path ] [ ...
URL: This final class represents an Internet Uniform Resource Locator (URL). For details on the syntax of URL's and what they can be used for, refer to RFC 1738, available from http://ds.internic.net/rfcs/rfc1738.txt There are a great many protocols supported by URL's such as "http", "ftp", and "file". This object can handle any arbitrary URL for which a URLStreamHandler object can be written. Default protocol handlers are provided for the "http" and "ftp" protocols. Additional protocols handler implementations may be provided in the future. In any case, an application or applet can install its own ...
URLClassLoader: A secure class loader that can load classes and resources from multiple locations. Given an array of URL s this class loader will retrieve classes and resources by fetching them from possible remote locations. Each URL is searched in order in which it was added. If the file portion of the URL ends with a '/' character then it is interpreted as a base directory, otherwise it is interpreted as a jar file from which the classes/resources are resolved. New instances can be created by two static newInstance() methods or by three public contructors. Both ways give the option to supply an initial array ...
SocketPermission: This class models a specific set of permssions for connecting to a host. There are two elements to this, the host/port combination and the permission list. The host/port combination is specified as followed hostname[:[-]port[-[port]]] The hostname portion can be either a hostname or IP address. If it is a hostname, a wildcard is allowed in hostnames. This wildcard is a "*" and matches one or more characters. Only one "*" may appear in the host and it must be the leftmost character. For example, "*.urbanophile.com" matches all hosts in the "urbanophile.com" domain. The port portion can be either ...
URLConnection: This class models a connection that retrieves the information pointed to by a URL object. This is typically a connection to a remote node on the network, but could be a simple disk read. A URLConnection object is normally created by calling the openConnection() method of a URL object. This method is somewhat misnamed because it does not actually open the connection. Instead, it return an unconnected instance of this object. The caller then has the opportunity to set various connection options prior to calling the actual connect() method. After the connection has been opened, there are a number ...
URLStreamHandler: This class is the superclass of all URL protocol handlers. The URL class loads the appropriate protocol handler to establish a connection to a (possibly) remote service (eg, "http", "ftp") and to do protocol specific parsing of URL's. Refer to the URL class documentation for details on how that class locates and loads protocol handlers. A protocol handler implementation should override the openConnection() method, and optionally override the parseURL() and toExternalForm() methods if necessary. (The default implementations will parse/write all URL's in the same form as http URL's). A protocol specific ...
LinearInterpolator: This class is an implementation of the Interpolator interface and it uses a statistical approach called fixed point interpolation that I created during my master degree thesis. The transmission line model and the level model are described by a linear curve like the following: y=A*x+b The model is composed of two interpolation curve: the first is used for the compression time the second is used for the compression ratio The model is completed by the preceding sample point. So every model keeps five coefficients: A and B for compression time, A and B for compression ratio, and X for the last sample ...
DatagramPacket: This class models a packet of data that is to be sent across the network using a connectionless protocol such as UDP. It contains the data to be send, as well as the destination address and port. Note that datagram packets can arrive in any order and are not guaranteed to be delivered at all. This class can also be used for receiving data from the network. Note that for all method below where the buffer length passed by the caller cannot exceed the actually length of the byte array passed as the buffer, if this condition is not true, then the method silently reduces the length value to maximum ...
JarURLConnection: This abstract class represents a common superclass for implementations of jar URL's. A jar URL is a special type of URL that allows JAR files on remote systems to be accessed. It has the form: jar:<standard URL pointing to jar filei>!/file/within/jarfile for example: jar:http://www.urbanophile.com/java/foo.jar!/com/urbanophile/bar.class That example URL points to the file /com/urbanophile/bar.class in the remote JAR file http://www.urbanophile.com/java/foo.jar. The HTTP protocol is used only as an example. Any supported remote protocol can be used. This class currently works by retrieving ...
NetPermission: This class is used to model miscellaneous network permissions. It is a subclass of BasicPermission . This means that it models a "boolean" permission. One that you either have or do not have. Thus there is no permitted action list associated with this object. The following permission names are defined for this class: setDefaultAuthenticator - Grants the ability to install a facility to collect username and password information when requested by a web site or proxy server. requestPasswordAuthentication - Grants the ability to ask the authentication facility for the user's password. specifyStreamHandler ...
Socket: This class models a client site socket. A socket is a TCP/IP endpoint for network communications conceptually similar to a file handle. This class does not actually do any work. Instead, it redirects all of its calls to a socket implementation object which implements the SocketImpl interface. The implementation class is instantiated by factory class that implements the SocketImplFactory interface . A default factory is provided, however the factory may be set by a call to the setSocketImplFactory method. Note that this may only be done once per virtual machine. If a subsequent attempt is made to ...
URLDecoder: This utility class contains static methods that converts a string encoded in the x-www-form-urlencoded format to the original text. The x-www-form-urlencoded format replaces certain disallowed characters with encoded equivalents. All upper case and lower case letters in the US alphabet remain as is, the space character (' ') is replaced with '+' sign, and all other characters are converted to a "%XX" format where XX is the hexadecimal representation of that character in a given character encoding (default is "UTF-8"). This method is very useful for decoding strings sent to CGI scripts Written using ...
URLEncoder: This utility class contains static methods that converts a string into a fully encoded URL string in x-www-form-urlencoded format. This format replaces certain disallowed characters with encoded equivalents. All upper case and lower case letters in the US alphabet remain as is, the space character (' ') is replaced with '+' sign, and all other characters are converted to a "%XX" format where XX is the hexadecimal representation of that character in a certain encoding (by default, the platform encoding, though the standard is "UTF-8"). This method is very useful for encoding strings to be sent to ...
SocketImpl: This abstract class serves as the parent class for socket implementations. The implementation class serves an intermediary to native routines that perform system specific socket operations. A default implementation is provided by the system, but this can be changed via installing a SocketImplFactory (through a call to the static method Socket.setSocketImplFactory ). A subclass of Socket can also pass in a SocketImpl to the Socket(SocketImpl) constructor to use an implementation different from the system default without installing a factory.
Listener: This class represents the two separate half parts of the measurement process upon which is based the statistical model used to drive the compression layer. It exists a listener for every received packet waiting for its ack to come. When the listener is created it carries information about the interpolator it should update and the measured parameters like the choosed working level, the compression time and dimension and the uncompressed dimension. Finally, when the ack arrives, the listener is awakened and the transmission time is measured. Now the model is complete and the interpolator can be updated ...
Authenticator: This abstract class provides a model for obtaining authentication information (in the form of a username and password) required by some network operations (such as hitting a password protected web site). To make use of this feature, a programmer must create a subclass that knows how to obtain the necessary info. An example would be a class that popped up a dialog box to prompt the user. After creating an instance of that subclass, the static setDefault method of this class is called to set up that instance as the object to use on subsequent calls to obtain authorization.
MulticastSocket: This class models a multicast UDP socket. A multicast address is a class D internet address (one whose most significant bits are 1110). A multicast group consists of a multicast address and a well known port number. All members of the group listening on that address and port will receive all the broadcasts to the group. Please note that applets are not allowed to use multicast sockets Written using on-line Java Platform 1.2 API Specification, as well as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). Status: Believed complete and correct.
Decompressor: This interface models the common methods that every decompressor must provide in order to be used as a "plugin" into the decompression layer. The interface scheme is based on the Inflater class, the standard decompression engine available in every JVM. If you want to provide a new decompression engine, you have to implement this interface and pass the class name as the property decompressor : java -Ddecompressor=java.net.InflatingDecompressor ....
Compressor: This interface models the common methods that every compressor must provide in order to be used as a "plugin" into the compression layer. The interface scheme is based on the Deflater class, the standard compression engine available in every JVM. If you want to provide a new compression engine, you have to implement this interface and pass the class name as the property compressor : java -Dcompressor=java.net.DeflatingCompressor ....
ContentHandler: This is an abstract class that is the superclass for classes that read objects from URL's. Calling the getContent() method in the URL class or the URLConnection class will cause an instance of a subclass of ContentHandler to be created for the MIME type of the object being downloaded from the URL. Thus, this class is seldom needed by applications/applets directly, but only indirectly through methods in other classes.
ServerSocket: This class models server side sockets. The basic model is that the server socket is created and bound to some well known port. It then listens for and accepts connections. At that point the client and server sockets are ready to communicate with one another utilizing whatever application layer protocol they desire. As with the Socket class, most instance methods of this class simply redirect their calls to an implementation class.
InetAddress: This class models an Internet address. It does not have a public constructor. Instead, new instances of this objects are created using the static methods getLocalHost(), getByName(), and getAllByName(). This class fulfills the function of the C style functions gethostname(), gethostbyname(), and gethostbyaddr(). It resolves Internet DNS names into their corresponding numeric addresses and vice versa.
ZInputStream: This class implements a growing ByteArrayInputStream. Normally a ByteArrayInputStream is initialized and cannot change its internal byte array. This class provides a method to add byte arrays to the internal buffer thus enlarging it dynamically. Moreover, this class provides an efficient garbage collector that shrink the internal byte array as data gets read, preventing memory trashing!
Interpolator: This is the common interface of every statistical modeler, from here interpolator . It provides a common yet simple framework based on the tecnique of stop-and-go . When the layer sends a packet it makes a first half of measurement and stops. When the ack for the previous packet arrives, the interpolator is update with data from the second half of measurement, thus completing it.
DatagramSocketImpl: This abstract class models a datagram socket implementation. An actual implementation class would implement these methods, probably via redirecting them to native code. Written using on-line Java Platform 1.2 API Specification, as well as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998). Status: Believed complete and correct.

Home | Contact Us | Privacy Policy | Terms of Service