Servertec | read( )

Content Introduction Release Notes Features FAQs Requirements Installation Change Log Future Plans Knowledge Base Reference Manual Conventions Scriptlets Data Types Constants Variables Procedures Operators Statements Objects Array Config Context Cookie Date Enumeration File FileDescriptor Hashtable Internet IO available( ) checkError( ) close( ) connect( ) DataInputStream( ) DataOutputStream( ) FileInputStream( ) FileOutputStream( ) flush( ) getFD( ) getFilePointer( ) PipedInputStream( ) PipedOutputStream( ) print( ) println( ) PrintStream( ) RandomAccessFile( ) read( ) readFully( ) readLine( ) reset( ) seek( ) size( ) skip( ) skipBytes( ) StringBuffer InputStream( ) write( ) JDBC Number Object Properties Random Request RequestDispatcher Response Session SqlTypes Stack StreamTokenizer String StringBuffer StringTokenizer System Vector Wrappers Servlet Server Pages Preprocessor Executable Samples Legal Contact Us |
Return value(s) read from the specified file input stream, piped input stream, string buffer input stream, data input stream, data input, random access file or input stream object. #### Syntax read( inputstream ) inputstream.read( ) #### Parameters
inputstream | the file input stream, piped input stream, string buffer input stream, random access file, data input stream, data input or input stream or object to use.
#### Returns
integer | the byte read. -1 if end of file was reached.
#### Example
    b = fh.read( )
#### Syntax read( inputstream , bytearray ) inputstream.read( bytearray ) #### Parameters
inputstream | the file input stream, piped input stream, string buffer input stream, random access file, data input stream, data input or input stream or object to use.
bytearray | a byte array object to read into.
#### Returns
length | the number of bytes read. -1 if end of file was reached.
#### Example
    sz = fh.read( buf )
#### Syntax read( inputstream , bytearray , offset , length ) inputstream.read( bytearray , offset , length ) #### Parameters
inputstream | the file input stream, piped input stream, string buffer input stream, random access file, data input stream, data input or input stream or object to use.
bytearray | a byte array object to read into.
offset | a starting offset.
length | the number of bytes to read.
#### Returns
length | the number of bytes read. -1 if end of file was reached.
#### Example
    sz = fh.read( buf, 0, 1024 )
top of page Copyright © 1998-2005 Servertec. All rights reserved. Privacy Statement. Last Modified: Sun Sep 04 14:56:08 EDT 2005