Package org.mycore.datamodel.niofs
Class MCRPathXML
java.lang.Object
org.mycore.datamodel.niofs.MCRPathXML
- Version:
- $Revision: 28688 $ $Date: 2013-12-18 15:27:20 +0100 (Wed, 18 Dec 2013) $
- Author:
- Thomas Scheffler (yagee)
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
getDirectoryXML
(MCRPath path) static Document
getDirectoryXML
(MCRPath path, BasicFileAttributes attr) Sends the contents of an MCRDirectory as XML data to the clientstatic Document
getFileXML
(MCRPath path) Returns metadata of the file retrievable by 'path' in XML form.static Document
getFileXML
(MCRPath path, BasicFileAttributes attrs) Returns metadata of the file retrievable by 'path' in XML form.
-
Method Details
-
getDirectoryXML
- Throws:
IOException
-
getDirectoryXML
Sends the contents of an MCRDirectory as XML data to the client- Throws:
IOException
-
getFileXML
Returns metadata of the file retrievable by 'path' in XML form. Same asgetFileXML(MCRPath, BasicFileAttributes)
, but attributes are retrieved first.- Throws:
IOException
-
getFileXML
Returns metadata of the file retrievable by 'path' in XML form.- Parameters:
path
- Path to Fileattrs
- file attributes of given file- Throws:
IOException
-