lumis.portal.serialization.persistency.fs
Class FSShallowDirectory
java.lang.Object
lumis.portal.serialization.persistency.fs.FSDirectory
lumis.portal.serialization.persistency.fs.FSShallowDirectory
- All Implemented Interfaces:
- Closeable, IDirectory, IFSDirectory
public class FSShallowDirectory
- extends FSDirectory
FSDirectory
variant that stores all files in the root directory, mapping each file path to a GUID.
- Since:
- 4.0.10
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSShallowDirectory
public FSShallowDirectory(String rootPath)
FSShallowDirectory
public FSShallowDirectory(File root)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Overrides:
close
in class FSDirectory
- Throws:
IOException
exists
public boolean exists(String filePath)
throws IOException
- Description copied from interface:
IDirectory
- Check the existence of a file.
- Specified by:
exists
in interface IDirectory
- Overrides:
exists
in class FSDirectory
- Parameters:
filePath
- path to the file to be checked.
- Returns:
- true, if the specified file exists.
- Throws:
IOException
- if an I/O error occurs.
getDescription
public String getDescription()
- Description copied from interface:
IDirectory
- Generate a general description of the directory, used mainly to compose exception messages.
- Specified by:
getDescription
in interface IDirectory
- Overrides:
getDescription
in class FSDirectory
- Returns:
- directory description.
getInputStream
public InputStream getInputStream(String filePath)
throws FileNotFoundException,
IOException
- Description copied from interface:
IDirectory
- Get an
InputStream
to a repository file.
- Specified by:
getInputStream
in interface IDirectory
- Overrides:
getInputStream
in class FSDirectory
- Parameters:
filePath
- path to the file.
- Returns:
InputStream
to file found in specified filePath.
- Throws:
FileNotFoundException
- if no file was found in specified filePath.
IOException
- if an I/O error occurs.
getOutputStream
public OutputStream getOutputStream(String filePath)
throws IOException
- Description copied from interface:
IDirectory
- Get an
OutputStream
to a repository file.
- Specified by:
getOutputStream
in interface IDirectory
- Overrides:
getOutputStream
in class FSDirectory
- Parameters:
filePath
- path to the file.
- Returns:
OutputStream
to the new file
- Throws:
IOException
- if an I/O error occurs.
Lumisportal 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.