Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JCapture (jrclient API)

Class JCapture

        com.jbase.jrcs.JCapture
    public final class JCapture
        extends Object
        Represents a capture object designed to incrementally fetch results of program execution.


Constructor Summary

Modifier
Constructor and Description
protected
JCapture(int handle, JConnection conn)


Method Summary

 
Modifier and Type
Method
 Description
boolean
atEnd()
Indicates whether the captured output is exhausted
void
close()
Closes the object and releases its server-side handle
protected void
finalize()

int
getBlockSize()
Sets the block size for nextBlock operation
String
nextBlock()
Fetches next block of captured output
void
rewind()
Returns the current position in the saved output to the beginning of the output stream.
void
setBlockSize(int blockSize)
Gets the block size for the nextBlock method

Methods inherited from class java.lang.Object

clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait



Constructor Detail

JCapture

protected JCapture(int handle, JConnection conn)



Method Detail

nextBlock

public String nextBlock() 

 throws JException 

Fetches next block of captured output 

Block:  Next block of captured output 

Throws:  JException 



getBlockSize

public int getBlockSize() 

throws JException

Sets the block size for nextBlock operation 

Returns: Size of blocks fetched by the nextBlock() method The blocks are at least the length of this block size, but may be longer to include everything up to and including the next attribute mark. 

Throws: JException 



setBlockSize

public void setBlockSize(int blockSize) 

 throws JException Gets the block size for the nextBlock method 

Parameters: 

blockSize - Size of block fetched by the nextBlock method The blocks are at least the length of this block size, but may be longer to include everything up to and including the next attribute mark. 

Throws:  JException 



atEnd

public boolean atEnd()  

throws JException 

Indicates whether the captured output is exhausted 

Returns:  true is the output is exhausted and no more lines can be fetched 

Throws:  JException      



rewind

public void rewind() 

throws JException 

Returns:  the current position in the saved output to the beginning of the output stream.

Throws: JException  



close

public void close() 

 throws JException 

Closes the object and releases its server-side handle 

Throws:  JException



finalize

protected void finalize()

Overides: finalize in class Object

Was this article helpful?