NETLIB II

IS: the Input Stream

Most types that implement the URL Connection interface UC return an input stream type that implements this interface. This interface defines one method, read, which is used to read data from a 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 IS {
  public abstract int read(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 "IS.h"

jint IS_read(IS *self, jbyte *a, jsize a_length, PRIntervalTime timeout, JMCException **e);

/* methods inherited from base JMC object interface */
void *IS_getInterface(IS *self, JMCInterfaceID id, JMCException **e);
void IS_addRef(IS *self, JMCException **e);
void IS_release(IS *self, JMCException **e);
jint IS_hashCode(IS *self, JMCException **e);
void *IS_clone(IS *self, JMCException **e);
const char *IS_toString(IS *self, JMCException **e);
void IS_finalize(IS *self, JMCException **e);

Written by Frederick at 14:42 03.04.1997.