FileResource
class RFResource extends java.lang.Object implements FileResource
Modifier and Type | Field | Description |
---|---|---|
private BaseDataFileFactory |
factory |
JAR_DIRECTORY_NAME
Constructor | Description |
---|---|
RFResource(BaseDataFileFactory dataFactory) |
Modifier and Type | Method | Description |
---|---|---|
long |
add(java.lang.String name,
java.io.InputStream source) |
Add a file resource, copying from the input stream.
|
StorageFile |
getAsFile(java.lang.String name,
long generationId) |
Get the StorageFile for a file resource.
|
char |
getSeparatorChar() |
|
void |
remove(java.lang.String name,
long currentGenerationId) |
Remove the current generation of a file resource from
the database.
|
void |
removeJarDir(java.lang.String f) |
During hard upgrade to <= 10.9, remove a jar directory (at post-commit
time) from the database.
|
long |
replace(java.lang.String name,
long currentGenerationId,
java.io.InputStream source) |
Replace a file resource with a new version.
|
private final BaseDataFileFactory factory
RFResource(BaseDataFileFactory dataFactory)
public long add(java.lang.String name, java.io.InputStream source) throws StandardException
FileResource
add
in interface FileResource
name
- the name of the file resource.source
- an input stream for reading the content of
the file resource.StandardException
- OopsFileResource.add(java.lang.String, java.io.InputStream)
public void removeJarDir(java.lang.String f) throws StandardException
FileResource
removeJarDir
in interface FileResource
StandardException
- if an error occursFileResource.removeJarDir(java.lang.String)
public void remove(java.lang.String name, long currentGenerationId) throws StandardException
FileResource
remove
in interface FileResource
name
- the name of the fileResource to remove.StandardException
- OopsFileResource.remove(java.lang.String, long)
public long replace(java.lang.String name, long currentGenerationId, java.io.InputStream source) throws StandardException
FileResource
The InputStream will be closed by this method.
replace
in interface FileResource
name
- the name of the file resource.source
- an input stream for reading the content of
the file resource.StandardException
- OopsFileResource.replace(java.lang.String, long, java.io.InputStream)
public StorageFile getAsFile(java.lang.String name, long generationId)
FileResource
getAsFile
in interface FileResource
name
- The name of the fileResourcegenerationId
- the generationId of the fileResourceFileResource.getAsFile(java.lang.String, long)
public char getSeparatorChar()
getSeparatorChar
in interface FileResource
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.