background preloader

Java

Facebook Twitter

Apuntes de XML. How to store properties into XML file? Properties (Java 2 Platform SE 5.0) Reads a property list (key and element pairs) from the input stream.

Properties (Java 2 Platform SE 5.0)

The stream is assumed to be using the ISO 8859-1 character encoding; that is each byte is one Latin1 character. Characters not in Latin1, and certain special characters, can be represented in keys and elements using escape sequences similar to those used for character and string literals (see §3.3 and §3.10.6 of the Java Language Specification).

The differences from the character escape sequences used for characters and strings are: Octal escapes are not recognized. The character sequence \b does not represent a backspace character. The method does not treat a backslash character, \, before a non-valid escape character as an error; the backslash is silently dropped. Printable (Java Platform SE 7 b120) The Printable interface is implemented by the print methods of the current page painter, which is called by the printing system to render a page.

Printable (Java Platform SE 7 b120)

When building a Pageable, pairs of PageFormat instances and instances that implement this interface are used to describe each page. The instance implementing Printable is called to print the page's graphics. A Printable(..) may be set on a PrinterJob. When the client subsequently initiates printing by calling PrinterJob.print(..) control is handed to the printing system until all pages have been printed.