org.apache.tomcat.jni

Interface BIOCallback

public interface BIOCallback

Open SSL BIO Callback Interface

Version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Mladen Turk

Method Summary
Stringgets(int len)
Read string up to the len or CLRLF
intputs(String data)
Puts string
intread(byte[] buf)
Read data
intwrite(byte[] buf)
Write data

Method Detail

gets

public String gets(int len)
Read string up to the len or CLRLF

Parameters: len Maximum number of characters to read

Returns: String with up to len bytes readed

puts

public int puts(String data)
Puts string

Parameters: data String to write

Returns: Number of characters written

read

public int read(byte[] buf)
Read data

Parameters: buf buffer to store the read bytes.

Returns: number of bytes read.

write

public int write(byte[] buf)
Write data

Parameters: buf containg the bytes to write.

Returns: Number of characters written.

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.