Java Doc for QueryReader.java in  » XML » saxonb » net » sf » saxon » query » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » saxonb » net.sf.saxon.query 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.saxon.query.QueryReader

QueryReader
public class QueryReader (Code)
This class contains static methods used to read a query as a byte stream, infer the encoding if necessary, and return the text of the query as a string; also methods to import functions and variables from one module into another, and check their consistency.




Method Summary
static  voidcheckSchemaNamespaceImported(StaticQueryContext env, int fingerprint, Declaration declaration)
    
public static  voidimportModuleContents(StaticQueryContext importedModule, StaticQueryContext thisModule)
    
public static  StringreadEncoding(InputStream is)
     Read an input stream non-destructively to determine the encoding from the Query Prolog
Parameters:
  is - the input stream: this must satisfy the precondition is.markSupported() = true.
public static  StringreadInputStream(InputStream is, String encoding, NameChecker nameChecker)
     Read a query from an InputStream.
public static  StringreadSourceQuery(StreamSource ss, NameChecker nameChecker)
     Read a query module given a StreamSource
Parameters:
  ss - the supplied StreamSource.



Method Detail
checkSchemaNamespaceImported
static void checkSchemaNamespaceImported(StaticQueryContext env, int fingerprint, Declaration declaration) throws StaticError(Code)
Check that the namespace of a given name is the namespace of an imported schema



importModuleContents
public static void importModuleContents(StaticQueryContext importedModule, StaticQueryContext thisModule) throws StaticError(Code)
Check the types used in the functions and variables in an imported module
Parameters:
  importedModule - the imported module
Parameters:
  thisModule - thus module
throws:
  net.sf.saxon.trans.StaticError -



readEncoding
public static String readEncoding(InputStream is) throws StaticError(Code)
Read an input stream non-destructively to determine the encoding from the Query Prolog
Parameters:
  is - the input stream: this must satisfy the precondition is.markSupported() = true. the encoding to be used: defaults to UTF-8 if no encoding was specified explicitlyin the query prolog
throws:
  StaticError - if the input stream cannot be read



readInputStream
public static String readInputStream(InputStream is, String encoding, NameChecker nameChecker) throws StaticError(Code)
Read a query from an InputStream. The method checks that all characters are valid XML characters, and also performs normalization of line endings.
Parameters:
  is - the input stream
Parameters:
  encoding - the encoding, or null if the encoding is unknown
Parameters:
  nameChecker - the nameChecker to be used for checking characters the content of the InputStream as a string



readSourceQuery
public static String readSourceQuery(StreamSource ss, NameChecker nameChecker) throws StaticError(Code)
Read a query module given a StreamSource
Parameters:
  ss - the supplied StreamSource. This must contain a non-null systemID which defines the baseURI of the query module, and either an InputStream or a Reader containing the query text. In thecase of an InputStream the method attempts to infer the encoding; in the case of a Reader, this hasalready been done, and the encoding specified within the query itself is ignored.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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