|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bigzip.plugin.compression.io.NullCompression
Constructor Summary | |
NullCompression()
|
Method Summary | |
Compressor |
createInstance()
Creates a new instance of the implemented Compressor class. |
int |
deflate(byte[] b)
Fills specified buffer with compressed data. |
int |
deflate(byte[] b,
int off,
int len)
Fills specified buffer with compressed data. |
void |
end()
Discards unprocessed input and frees internal data. |
void |
finish()
When called, indicates that compression should end with the current contents of the input buffer. |
boolean |
finished()
Returns true if the end of the compressed data output stream has been reached. |
java.lang.String |
getName()
|
int |
getTotalIn()
Returns the total number of bytes input so far. |
int |
getTotalOut()
Returns the total number of bytes output so far. |
int |
getVersion()
return version number of the engine, in this case "0". |
boolean |
needsInput()
Returns true if the input data buffer is empty and setInput() should be called in order to provide more input. |
void |
reset()
Resets deflater so that a new set of input data can be processed. |
void |
setDictionary(byte[] b)
Sets preset dictionary for compression. |
void |
setDictionary(byte[] b,
int off,
int len)
Sets preset dictionary for compression. |
void |
setInput(byte[] b)
Sets input data for compression. |
void |
setInput(byte[] b,
int off,
int len)
Sets input data for compression. |
void |
setLevel(int level)
Sets the current compression level to the specified value. |
void |
setStrategy(int strategy)
Sets the compression strategy to the specified value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NullCompression()
Method Detail |
public java.lang.String getName()
getName
in interface Compressor
public int getVersion()
getVersion
in interface Compressor
com.bigzip.plugin.compression.engine.Compressor
public void setInput(byte[] b, int off, int len)
setInput
in interface Compressor
b
- the input data bytesoff
- the start offset of the datalen
- the length of the dataDeflater#needsInput
public void setInput(byte[] b)
setInput
in interface Compressor
b
- the input data bytesDeflater#needsInput
public void setDictionary(byte[] b, int off, int len)
setDictionary
in interface Compressor
b
- the dictionary data bytesoff
- the start offset of the datalen
- the length of the dataInflater#inflate
,
Inflater#getAdler
public void setDictionary(byte[] b)
setDictionary
in interface Compressor
b
- the dictionary data bytesInflater#inflate
,
Inflater#getAdler
public void setStrategy(int strategy)
setStrategy
in interface Compressor
strategy
- the new compression strategyjava.lang.IllegalArgumentException
- if the compression strategy is
invalidpublic void setLevel(int level)
setLevel
in interface Compressor
level
- the new compression leveljava.lang.IllegalArgumentException
- if the compression level is invalidpublic boolean needsInput()
needsInput
in interface Compressor
public void finish()
finish
in interface Compressor
public boolean finished()
finished
in interface Compressor
public int deflate(byte[] b, int off, int len)
deflate
in interface Compressor
b
- the buffer for the compressed dataoff
- the start offset of the datalen
- the maximum number of bytes of compressed datapublic int deflate(byte[] b)
deflate
in interface Compressor
b
- the buffer for the compressed datapublic int getTotalIn()
getTotalIn
in interface Compressor
public int getTotalOut()
getTotalOut
in interface Compressor
public void reset()
reset
in interface Compressor
public void end()
end
in interface Compressor
public Compressor createInstance()
createInstance
in interface Compressor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |