org.glassfish.grizzly.compression.lzma
Class LZMAEncoder

java.lang.Object
  extended by org.glassfish.grizzly.AbstractTransformer<Buffer,Buffer>
      extended by org.glassfish.grizzly.compression.lzma.LZMAEncoder
All Implemented Interfaces:
Transformer<Buffer,Buffer>

public class LZMAEncoder
extends AbstractTransformer<Buffer,Buffer>


Nested Class Summary
static class LZMAEncoder.LZMAOutputState
           
static class LZMAEncoder.LZMAProperties
           
 
Nested classes/interfaces inherited from class org.glassfish.grizzly.AbstractTransformer
AbstractTransformer.LastResultAwareState<K,L>
 
Field Summary
 
Fields inherited from class org.glassfish.grizzly.AbstractTransformer
attributeBuilder, stateAttr
 
Constructor Summary
LZMAEncoder()
           
LZMAEncoder(LZMAEncoder.LZMAProperties lzmaProperties)
           
 
Method Summary
static LZMAEncoder.LZMAOutputState create()
           
protected  AbstractTransformer.LastResultAwareState<Buffer,Buffer> createStateObject()
           
 void finish(AttributeStorage storage)
           
 java.lang.String getName()
          Get the Transformer name.
 boolean hasInputRemaining(AttributeStorage storage, Buffer input)
           
protected  TransformationResult<Buffer,Buffer> transformImpl(AttributeStorage storage, Buffer input)
           
 
Methods inherited from class org.glassfish.grizzly.AbstractTransformer
getLastResult, getMemoryManager, getNamePrefix, getValue, obtainMemoryManager, obtainStateObject, release, saveLastResult, setMemoryManager, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LZMAEncoder

public LZMAEncoder()

LZMAEncoder

public LZMAEncoder(LZMAEncoder.LZMAProperties lzmaProperties)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Transformer
Get the Transformer name. The name is used to store Transformer associated data.

Returns:
The Transformer name.

hasInputRemaining

public boolean hasInputRemaining(AttributeStorage storage,
                                 Buffer input)

transformImpl

protected TransformationResult<Buffer,Buffer> transformImpl(AttributeStorage storage,
                                                            Buffer input)
                                                     throws TransformationException
Specified by:
transformImpl in class AbstractTransformer<Buffer,Buffer>
Throws:
TransformationException

createStateObject

protected AbstractTransformer.LastResultAwareState<Buffer,Buffer> createStateObject()
Overrides:
createStateObject in class AbstractTransformer<Buffer,Buffer>

create

public static LZMAEncoder.LZMAOutputState create()

finish

public void finish(AttributeStorage storage)


Copyright © 2012 Oracle Corporation. All Rights Reserved.