home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
template.z
/
BaseServletStream.java
next >
Wrap
Text File
|
1996-12-09
|
1KB
|
55 lines
/*
* BaseServletStream.java
*
*
* Copyright 1996 Sybase, Inc. All rights reserved.
*/
import java.io.*;
/**
* The BaseServletStream class provides an output stream for Java
* servlet to write to the browser client.
*/
public class BaseServletStream extends OutputStream
//*************************************************
{
//-------------------------------------------------------------
// Constructor
//-------------------------------------------------------------
/**
* Constructs a new BaseServletStream object with the specified handle
* @param handle handle to the WWW server
*/
public BaseServletStream( int handle )
//************************************
{
_handle = handle;
}
//-------------------------------------------------------------
// Public Methods
//-------------------------------------------------------------
/**
* Write a single byte to the WWW server's client
* @param b byte to write
* @exception IOException If I/O error has occurred
*/
public native void write( int b ) throws IOException;
//**************************************************
//-------------------------------------------------------------
// Data
//-------------------------------------------------------------
private int _handle; // handle to WebService
}