Java Doc for LSOutput.java in  » 6.0-JDK-Core » w3c » org » w3c » dom » ls » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » w3c » org.w3c.dom.ls 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.w3c.dom.ls.LSOutput

LSOutput
public interface LSOutput (Code)
This interface represents an output destination for data.

This interface allows an application to encapsulate information about an output destination in a single object, which may include a URI, a byte stream (possibly with a specified encoding), a base URI, and/or a character stream.

The exact definitions of a byte stream and a character stream are binding dependent.

The application is expected to provide objects that implement this interface whenever such objects are needed. The application can either provide its own objects that implement this interface, or it can use the generic factory method DOMImplementationLS.createLSOutput() to create objects that implement this interface.

The LSSerializer will use the LSOutput object to determine where to serialize the output to. The LSSerializer will look at the different outputs specified in the LSOutput in the following order to know which one to output to, the first one that is not null and not an empty string will be used:

  1. LSOutput.characterStream
  2. LSOutput.byteStream
  3. LSOutput.systemId

LSOutput objects belong to the application. The DOM implementation will never modify them (though it may make copies and modify the copies, if necessary).

See also the Document Object Model (DOM) Level 3 Load and Save Specification.





Method Summary
public  java.io.OutputStreamgetByteStream()
     An attribute of a language and binding dependent type that represents a writable stream of bytes.
public  java.io.WritergetCharacterStream()
     An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.
public  StringgetEncoding()
     The character encoding to use for the output.
public  StringgetSystemId()
     The system identifier, a URI reference [IETF RFC 2396], for this output destination.
public  voidsetByteStream(java.io.OutputStream byteStream)
     An attribute of a language and binding dependent type that represents a writable stream of bytes.
public  voidsetCharacterStream(java.io.Writer characterStream)
     An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.
public  voidsetEncoding(String encoding)
     The character encoding to use for the output.
public  voidsetSystemId(String systemId)
     The system identifier, a URI reference [IETF RFC 2396], for this output destination.



Method Detail
getByteStream
public java.io.OutputStream getByteStream()(Code)
An attribute of a language and binding dependent type that represents a writable stream of bytes.



getCharacterStream
public java.io.Writer getCharacterStream()(Code)
An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.



getEncoding
public String getEncoding()(Code)
The character encoding to use for the output. The encoding must be a string acceptable for an XML encoding declaration ([XML 1.0] section 4.3.3 "Character Encoding in Entities"), it is recommended that character encodings registered (as charsets) with the Internet Assigned Numbers Authority [IANA-CHARSETS] should be referred to using their registered names.



getSystemId
public String getSystemId()(Code)
The system identifier, a URI reference [IETF RFC 2396], for this output destination.
If the system ID is a relative URI reference (see section 5 in [IETF RFC 2396]), the behavior is implementation dependent.



setByteStream
public void setByteStream(java.io.OutputStream byteStream)(Code)
An attribute of a language and binding dependent type that represents a writable stream of bytes.



setCharacterStream
public void setCharacterStream(java.io.Writer characterStream)(Code)
An attribute of a language and binding dependent type that represents a writable stream to which 16-bit units can be output.



setEncoding
public void setEncoding(String encoding)(Code)
The character encoding to use for the output. The encoding must be a string acceptable for an XML encoding declaration ([XML 1.0] section 4.3.3 "Character Encoding in Entities"), it is recommended that character encodings registered (as charsets) with the Internet Assigned Numbers Authority [IANA-CHARSETS] should be referred to using their registered names.



setSystemId
public void setSystemId(String systemId)(Code)
The system identifier, a URI reference [IETF RFC 2396], for this output destination.
If the system ID is a relative URI reference (see section 5 in [IETF RFC 2396]), the behavior is implementation dependent.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.