Java Doc for SourceUtil.java in  » Content-Management-System » apache-lenya-2.0 » org » apache » lenya » cms » cocoon » source » 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 » Content Management System » apache lenya 2.0 » org.apache.lenya.cms.cocoon.source 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.lenya.cms.cocoon.source.SourceUtil

SourceUtil
final public class SourceUtil (Code)

version:
   $Id: SourceUtil.java 507914 2007-02-15 12:15:30Z andreas $




Method Summary
public static  voidcheckin(String sourceUri, ServiceManager manager)
     Checks in a transactionable source.
public static  voidcheckout(String sourceUri, ServiceManager manager)
     Checks out a repository source.
public static  voidcopy(Source source, ModifiableSource destination, boolean useBuffer)
    

Copies one Source to another using a source buffer i.e.

public static  voidcopy(SourceResolver resolver, String sourceUri, String destUri, boolean useBuffer)
     Copies one Source to another.
public static  voidcopy(SourceResolver resolver, String sourceUri, String destUri)
     Copies a Source without buffering.
public static  voidcopy(ServiceManager manager, String sourceUri, String destUri)
     Copies a Source without buffering.
public static  voidcopy(SourceResolver resolver, String sourceUri, OutputStream destOutputStream)
    
public static  voiddelete(String sourceUri, ServiceManager manager)
     Deletes a source if it exists.
public static  voiddeleteEmptyCollections(String sourceUri, ServiceManager manager)
     Deletes all empty collections in a subtree.
public static  booleanexists(String sourceUri, ServiceManager manager)
     Checks if a source exists.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
public static  longgetContentLength(String sourceUri, ServiceManager manager)
    
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
public static  longgetLastModified(String sourceUri, ServiceManager manager)
     Returns the last modification date of a source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
public static  StringgetMimeType(String sourceUri, ServiceManager manager)
    
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
public static  voidlock(String sourceUri, ServiceManager manager)
     Locks a transactionable source.
public static  DocumentreadDOM(String sourceUri, ServiceManager manager)
     Reads a DOM from a source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
public static  voidregisterDirty(String sourceUri, ServiceManager manager)
     Registers a source as dirty.
public static  voidunlock(String sourceUri, ServiceManager manager)
     Unlocks a transactionable source.
public static  voidwriteDOM(Document document, String sourceUri, ServiceManager manager)
     Writes a DOM to a source.
public static  voidwriteDOM(Document document, OutputStream oStream)
    



Method Detail
checkin
public static void checkin(String sourceUri, ServiceManager manager) throws RepositoryException, ServiceException, MalformedURLException, IOException(Code)
Checks in a transactionable source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  RepositoryException - If an error occurs.
throws:
  ServiceException - If an error occurs.
throws:
  MalformedURLException - If an error occurs.
throws:
  IOException - If an error occurs.



checkout
public static void checkout(String sourceUri, ServiceManager manager) throws RepositoryException, ServiceException, MalformedURLException, IOException(Code)
Checks out a repository source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  RepositoryException - If an error occurs.
throws:
  ServiceException - If an error occurs.
throws:
  MalformedURLException - If an error occurs.
throws:
  IOException - If an error occurs.



copy
public static void copy(Source source, ModifiableSource destination, boolean useBuffer) throws IOException(Code)

Copies one Source to another using a source buffer i.e. the source Source is buffered before it is copied to its final destination.

The optional buffering is sometimes useful, if the source Source somehow depends on the destination Source. This situation may occur e.g. if source Source is a Cocoon pipeline.

NOTE: o.a.e..s.SourceUtil.copy does not close streams on an exception!!


Parameters:
  source -
Parameters:
  destination -
Parameters:
  useBuffer - If true, the source data will be read into a bufferbefore it is written to the final destination.
throws:
  IOException - If an error occures.



copy
public static void copy(SourceResolver resolver, String sourceUri, String destUri, boolean useBuffer) throws IOException, SourceException(Code)
Copies one Source to another. The source Source is optionally buffered.
Parameters:
  resolver - The SourceResolver to use for lookin up Sources.
Parameters:
  sourceUri - The source to be copied.
Parameters:
  destUri - The URI to copy to.
Parameters:
  useBuffer - If true, the source Source is buffered before copied tothe final destination.
throws:
  IOException - If an error occures.
throws:
  SourceException - If the destination is not modifiable.
See Also:   SourceUtil.copy(Source,ModifiableSource,boolean)



copy
public static void copy(SourceResolver resolver, String sourceUri, String destUri) throws IOException(Code)
Copies a Source without buffering.
Parameters:
  resolver - A SourceResolver instance.
Parameters:
  sourceUri - The source URI to copy from.
Parameters:
  destUri - The destination URI to copy to.
throws:
  IOException - If an error occures.
See Also:   SourceUtil.copy(SourceResolver,String,String,boolean)



copy
public static void copy(ServiceManager manager, String sourceUri, String destUri) throws IOException, ServiceException(Code)
Copies a Source without buffering.
Parameters:
  manager - A service manager.
Parameters:
  sourceUri - The source URI to copy from.
Parameters:
  destUri - The destination URI to copy to.
throws:
  IOException - If an error occures.
throws:
  ServiceException -
See Also:   SourceUtil.copy(SourceResolver,String,String,boolean)



copy
public static void copy(SourceResolver resolver, String sourceUri, OutputStream destOutputStream) throws MalformedURLException, IOException(Code)

Parameters:
  resolver -
Parameters:
  sourceUri -
Parameters:
  destOutputStream -
throws:
  MalformedURLException -
throws:
  IOException -



delete
public static void delete(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)
Deletes a source if it exists.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  ServiceException - if an error occurs.
throws:
  MalformedURLException - if an error occurs.
throws:
  IOException - if an error occurs.



deleteEmptyCollections
public static void deleteEmptyCollections(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)
Deletes all empty collections in a subtree.
Parameters:
  sourceUri - The root source URI.
Parameters:
  manager - The service manager.
throws:
  ServiceException -
throws:
  MalformedURLException -
throws:
  IOException -



exists
public static boolean exists(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)
Checks if a source exists.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager. A boolean value.
throws:
  ServiceException - if an error occurs.
throws:
  MalformedURLException - if an error occurs.
throws:
  IOException - if an error occurs.



getContentLength
public static long getContentLength(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)

Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager. A content length.
throws:
  ServiceException -
throws:
  MalformedURLException -
throws:
  IOException -



getLastModified
public static long getLastModified(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)
Returns the last modification date of a source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager. A long value.
throws:
  ServiceException - if an error occurs.
throws:
  MalformedURLException - if an error occurs.
throws:
  IOException - if an error occurs.



getMimeType
public static String getMimeType(String sourceUri, ServiceManager manager) throws ServiceException, MalformedURLException, IOException(Code)

Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager. A mime type.
throws:
  ServiceException -
throws:
  IOException -
throws:
  MalformedURLException -



lock
public static void lock(String sourceUri, ServiceManager manager) throws RepositoryException(Code)
Locks a transactionable source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  RepositoryException - If an error occurs.



readDOM
public static Document readDOM(String sourceUri, ServiceManager manager) throws ServiceException, SourceNotFoundException, ParserConfigurationException, SAXException, IOException(Code)
Reads a DOM from a source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager. A document or null if the source does not exist.
throws:
  ServiceException - if an error occurs.
throws:
  SourceNotFoundException - if an error occurs.
throws:
  ParserConfigurationException - if an error occurs.
throws:
  SAXException - if an error occurs.
throws:
  IOException - if an error occurs.



registerDirty
public static void registerDirty(String sourceUri, ServiceManager manager)(Code)
Registers a source as dirty.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.



unlock
public static void unlock(String sourceUri, ServiceManager manager) throws RepositoryException(Code)
Unlocks a transactionable source.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  RepositoryException - If an error occurs.



writeDOM
public static void writeDOM(Document document, String sourceUri, ServiceManager manager) throws TransformerConfigurationException, TransformerException, ServiceException, MalformedURLException, IOException(Code)
Writes a DOM to a source.
Parameters:
  document - The document.
Parameters:
  sourceUri - The source URI.
Parameters:
  manager - The service manager.
throws:
  TransformerConfigurationException - if an error occurs.
throws:
  TransformerException - if an error occurs.
throws:
  ServiceException - if the source resolver could not be obtained.
throws:
  MalformedURLException - if the source URI is not valid.
throws:
  IOException - if an error occurs.



writeDOM
public static void writeDOM(Document document, OutputStream oStream) throws TransformerConfigurationException, TransformerException, IOException(Code)

Parameters:
  document - The XML document.
Parameters:
  oStream - The output stream.
throws:
  TransformerConfigurationException - if an error occurs.
throws:
  TransformerException - if an error occurs.
throws:
  IOException - if an error occurs.



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.