org.apache.cocoon.components
Class SourceRepository
java.lang.Object
org.apache.cocoon.components.SourceRepository
public class SourceRepository
- extends Object
- Version:
- CVS $Id: SourceRepository.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- stefano
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FILE_NAME
public static final String FILE_NAME
- See Also:
- Constant Field Values
getInstance
public static SourceRepository getInstance()
save
public static void save(Request request,
String dirName)
throws Exception
- Throws:
Exception
save
public static void save(Request request,
String param,
String dest)
throws Exception
- Throws:
Exception
save
public static void save(Part part,
ModifiableTraversableSource destination)
throws Exception
- Throws:
Exception
getOutputStream
public static OutputStream getOutputStream(String collection)
throws IOException
- Throws:
IOException
revertFrom
public static void revertFrom(String collection,
int version)
throws IOException
- Throws:
IOException
getVersionID
public static int getVersionID(String colName)
- Returns the highest version id of the files included in the given
directory.
getVersions
public static Object[] getVersions(String colName)
getID
public static int getID(String colName)
remove
public static boolean remove(String resourceName)
remove
public static boolean remove(ModifiableTraversableSource resource)
copy
public static void copy(String from,
String to)
throws IOException
- Throws:
IOException
copy
public static void copy(ModifiableTraversableSource from,
ModifiableTraversableSource to)
throws IOException
- Throws:
IOException
copy
public static void copy(InputStream from,
OutputStream to)
throws IOException
- Throws:
IOException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.