caucho
Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial

Getting Started
Configuration
Servlet
JSP
XTP/XSL
JavaScript
JS Library

Core Library
File Library
Servlet Library
Database Library
XML Library

VFS
File
ReadStream
WriteStream
InputStream
OutputStream
 java.io.InputStream

Some of the Java InputStream functions are slightly different in Resin than a strict translation following Resins Bean reflection. Resin changes InputStream to make its interface sensible for JavaScript.

java.io.InputStream properties
readByte() Reads a single byte from the stream and returns it as a number.
read([n]) Reads n characters from the stream and returns them as a string.
readln() Reads a line from the stream and returns a string.
available() Returns the number of bytes available. The only guarantee is that if there are bytes to be read available will be non-zero.
mark(readlimit) Reflection of InputStream's mark function.
markSupported() Reflection of InputStream's markSupported function.
reset() Reflection of InputStream's reset function.
skip(n) Reflection of InputStream's skip function.
close() Closes the stream.

java.io.InputStream properties Resin 1.0

readByte()

Reads a single byte from the stream and returns it as a number.

It returns -1 on end of file.

read([n])

Reads n characters from the stream and returns them as a string. If n is omitted, reads a single character.

It returns null on end of file.

readln()

Reads a line from the stream and returns a string. Lines are delimited by a linefeed ('\n'). The trailing cr-lf is stripped from the string.

Returns null on end of file.

available()

Returns the number of bytes available. The only guarantee is that if there are bytes to be read available will be non-zero.

mark(readlimit)

Reflection of InputStream's mark function.

markSupported()

Reflection of InputStream's markSupported function.

reset()

Reflection of InputStream's reset function.

skip(n)

Reflection of InputStream's skip function.

close()

Closes the stream.

WriteStream   OutputStream
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Fri, 31 Mar 2000 18:52:03 -0800 (PST)