|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.task.at4j.bzip2.AbstractBZip2WritableFileProxy org.schmant.task.at4j.bzip2.BZip2NewWritableFileProxy
public class BZip2NewWritableFileProxy
This proxy bzip2 encodes data written to another
WritableFile
. The file is created the first time that it
is requested. This proxy can be used together with the
ArgumentInterpreter
.
The proxy uses an OverwriteStrategy
to decide
what to do if it finds an already existing entity where it wants to create
the file.
The difference between this object and the
BZip2WritableFile
is that this object uses the
ArgumentInterpreter
for interpreting the proxied
file object.
The proxied object is interpreted using
InterpretAsNewWritableFileStrategy
.
GZipNewWritableFileProxy
,
LzmaNewWritableFileProxy
,
BZip2ExistingWritableFileProxy
,
BZip2ReadableFileProxy
Constructor Summary | |
---|---|
BZip2NewWritableFileProxy(Object proxied)
Create a new bzip2 writable file proxy. |
|
BZip2NewWritableFileProxy(Object proxied,
BZip2WritableFileSettings settings)
Create a new bzip2 writable file proxy. |
|
BZip2NewWritableFileProxy(Object proxied,
BZip2WritableFileSettings settings,
OverwriteStrategy overwriteStrategy)
Create a new bzip2 writable file proxy. |
|
BZip2NewWritableFileProxy(Object proxied,
OverwriteStrategy overwriteStrategy)
Create a new bzip2 writable file proxy. |
|
BZip2NewWritableFileProxy(Object proxied,
OverwriteStrategy overwriteStrategy,
CompressionLevel level,
boolean writeFileHeader)
Deprecated. |
|
BZip2NewWritableFileProxy(Object proxied,
OverwriteStrategy overwriteStrategy,
int blockSize,
boolean writeFileHeader)
Deprecated. |
Method Summary | |
---|---|
protected WritableFile |
getFileFromArgumentInterpreter(Object proxied)
|
Methods inherited from class org.schmant.task.at4j.bzip2.AbstractBZip2WritableFileProxy |
---|
getFile, getWriteLock, isWriteLockedByCurrentThread, lockForWriting, openChannelForAppend, openChannelForWrite, openForAppend, openForWrite |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.entityfs.WritableFile |
---|
openChannelForAppend, openChannelForWrite, openForAppend, openForWrite |
Methods inherited from interface org.entityfs.lock.WriteLockable |
---|
getWriteLock, isWriteLockedByCurrentThread, lockForWriting |
Constructor Detail |
---|
public BZip2NewWritableFileProxy(Object proxied)
DontOverwriteAndThrowException
.
proxied
- The proxied object. This will be interpreted into a
new writable file when the client writes to the proxy.public BZip2NewWritableFileProxy(Object proxied, OverwriteStrategy overwriteStrategy)
proxied
- The proxied object. This will be interpreted into a
new writable file when the client writes to the proxy.overwriteStrategy
- The overwrite strategy to use if an entity
already exists in the target file's location.public BZip2NewWritableFileProxy(Object proxied, BZip2WritableFileSettings settings)
DontOverwriteAndThrowException
.
proxied
- The proxied object. This will be interpreted into a
new writable file when the client writes to the proxy.settings
- The bzip2 settings. The settings object is cloned by
the created proxy.public BZip2NewWritableFileProxy(Object proxied, BZip2WritableFileSettings settings, OverwriteStrategy overwriteStrategy)
proxied
- The proxied object. This will be interpreted into a
new writable file when the client writes to the proxy.settings
- The bzip2 settings. The settings object is cloned by
the created proxy.overwriteStrategy
- The overwrite strategy to use if an entity
already exists in the target file's location.@Deprecated public BZip2NewWritableFileProxy(Object proxied, OverwriteStrategy overwriteStrategy, int blockSize, boolean writeFileHeader) throws IllegalArgumentException
proxied
- The proxied object.overwriteStrategy
- The overwrite strategy to use if an entity
already exists in the target file's location.blockSize
- The bzip2 block size, in 100kb increments.writeFileHeader
- This property is deprecated and is now always
true
.
IllegalArgumentException
- If the block size is not between 1
and 9
(inclusive).@Deprecated public BZip2NewWritableFileProxy(Object proxied, OverwriteStrategy overwriteStrategy, CompressionLevel level, boolean writeFileHeader)
proxied
- The proxied object.overwriteStrategy
- The overwrite strategy to use if an entity
already exists in the target file's location.level
- The compression level.writeFileHeader
- This property is deprecated and is now always
true
.Method Detail |
---|
protected WritableFile getFileFromArgumentInterpreter(Object proxied)
getFileFromArgumentInterpreter
in class AbstractBZip2WritableFileProxy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |