NETLIB II

OS: the Output Stream

Many types that implement the URL Connection interface UC return an output stream type that implements this interface. This interface defines one method, write, which is used to write data to the connected URL Connection.

Definition

This interface is defined in java, and is compiled with JMC. The C syntax is included in each method description, and is summarised below.
package netscape.net;
import netscape.types.Interval;

public abstract interface OS {
    public abstract void write(byte[] b, Interval timeout) throws Exception;
}

Interface Methods

Inherited Methods

Although this interface does not inherit anything, note that all objects implementing this interface will inherit the usual JMC base methods.

C interface

#include "OS.h"

void OS_write(OS *self, jbyte *a, jsize a_length, PRIntervalTime timeout, JMCException **e);

/* methods inherited from base JMC object interface */
void *OS_getInterface(OS *self, JMCInterfaceID id, JMCException **e);
void OS_addRef(OS *self, JMCException **e);
void OS_release(OS *self, JMCException **e);
jint OS_hashCode(OS *self, JMCException **e);
void *OS_clone(OS *self, JMCException **e);
const char *OS_toString(OS *self, JMCException **e);
void OS_finalize(OS *self, JMCException **e);

Written by Frederick at 14:41 03.04.1997.