FileDocCategorySizeDatePackage
BufferManagerReadGrow.javaAPI DocJava SE 5 API2334Fri Aug 26 14:54:20 BST 2005com.sun.corba.se.impl.encoding

BufferManagerReadGrow

public class BufferManagerReadGrow extends Object implements MarkAndResetHandler, BufferManagerRead

Fields Summary
private com.sun.corba.se.spi.orb.ORB
orb
private com.sun.corba.se.impl.logging.ORBUtilSystemException
wrapper
private Object
streamMemento
private RestorableInputStream
inputStream
private boolean
markEngaged
Constructors Summary
BufferManagerReadGrow(com.sun.corba.se.spi.orb.ORB orb)

	this.orb = orb ;
	this.wrapper = ORBUtilSystemException.get( orb,
	    CORBALogDomains.RPC_ENCODING ) ;
    
Methods Summary
public voidcancelProcessing(int requestId)

public voidclose(ByteBufferWithInfo bbwi)

public voidfragmentationOccured(ByteBufferWithInfo newFragment)

public MarkAndResetHandlergetMarkAndResetHandler()


       
        return this;
    
public voidinit(com.sun.corba.se.impl.protocol.giopmsgheaders.Message msg)

public voidmark(RestorableInputStream is)

        markEngaged = true;
        inputStream = is;
        streamMemento = inputStream.createStreamMemento();
    
public voidprocessFragment(java.nio.ByteBuffer byteBuffer, com.sun.corba.se.impl.protocol.giopmsgheaders.FragmentMessage header)

        // REVISIT - should we consider throwing an exception similar to what's
        //           done for underflow()???
    
public voidreset()


        if (!markEngaged)
            return;

        markEngaged = false;
        inputStream.restoreInternalState(streamMemento);
        streamMemento = null;
    
public ByteBufferWithInfounderflow(ByteBufferWithInfo bbwi)

	throw wrapper.unexpectedEof() ;