Methods Summary |
---|
public TransportHelper | getHelper()
return( target_filter.getHelper());
|
public java.lang.String | getName()
return( target_filter.getName());
|
public boolean | hasBufferedRead()
return( read_insert != null || target_filter.hasBufferedRead());
|
public boolean | hasBufferedWrite()
return( target_filter.hasBufferedWrite());
|
public boolean | isEncrypted()
return( target_filter.isEncrypted());
|
public long | read(java.nio.ByteBuffer[] buffers, int array_offset, int length)
long total_read = 0;
if ( read_insert != null ){
int pos_before = read_insert.position();
for (int i=array_offset;i<array_offset+length;i++){
ByteBuffer buffer = buffers[i];
int space = buffer.remaining();
if ( space > 0 ){
if ( space < read_insert.remaining()){
int old_limit = read_insert.limit();
read_insert.limit( read_insert.position() + space );
buffer.put( read_insert );
read_insert.limit( old_limit );
}else{
buffer.put( read_insert );
}
if ( !read_insert.hasRemaining()){
break;
}
}
}
total_read = read_insert.position() - pos_before;
if ( read_insert.hasRemaining()){
return( total_read );
}else{
read_insert = null;
}
}
total_read += target_filter.read( buffers, array_offset, length );
return( total_read );
|
public void | setTrace(boolean on)
target_filter.setTrace( on );
|
public long | write(java.nio.ByteBuffer[] buffers, int array_offset, int length)
return( target_filter.write( buffers, array_offset, length ));
|