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

BufferManagerWriteGrow

public class BufferManagerWriteGrow extends com.sun.corba.se.impl.encoding.BufferManagerWrite

Fields Summary
Constructors Summary
BufferManagerWriteGrow(com.sun.corba.se.spi.orb.ORB orb)

	super(orb) ;
    
Methods Summary
public voidclose()
Close the BufferManagerWrite and do any outstanding cleanup. No work to do for a BufferManagerWriteGrow.

public intgetBufferSize()
Returns the correct buffer size for this type of buffer manager as set in the ORB.

        return orb.getORBData().getGIOPBufferSize();
    
public voidoverflow(com.sun.corba.se.impl.encoding.ByteBufferWithInfo bbwi)

	// The code that once lived directly in CDROutputStream.grow()
        // has been moved ByteBufferWithInfo.growBuffer().

        // Grow ByteBufferWithInfo to a larger size.
        bbwi.growBuffer(orb);        

        // Must be false for the grow case
        bbwi.fragmented = false;
    
public voidsendMessage()

        Connection conn =
              ((OutputObject)outputObject).getMessageMediator().getConnection();

        conn.writeLock();

        try {

            conn.sendWithoutLock((OutputObject)outputObject);

            sentFullMessage = true;

        } finally {

            conn.writeUnlock();
        }
    
public booleansentFragment()

        return false;