SAP NetWeaver '04

com.sapportals.wcm.util.mmparser
Class MMInputStream

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
  |
  +--java.io.InputStream
        |
        +--java.io.FilterInputStream
              |
              +--com.sapportals.wcm.util.mmparser.MMInputStream

public class MMInputStream
extends java.io.FilterInputStream

This class implements a readLine Method for a byte stream.


Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MMInputStream(java.io.InputStream in)
          Creates a BufferedServletInputStream that wraps the provided ServletInputStream .
 
Method Summary
 int read()
          Implement buffering on top of the read method of the wrapped ServletInputStream .
 int read(byte[] b, int off, int len)
          Implement buffering on top of the read method of the wrapped ServletInputStream .
 int readLine(byte[] b, int off, int len)
          Implement buffering on top of the readLine method of the wrapped ServletInputStream .
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMInputStream

public MMInputStream(java.io.InputStream in)
Creates a BufferedServletInputStream that wraps the provided ServletInputStream .
Parameters:
in - a servlet input stream.
Method Detail

readLine

public int readLine(byte[] b,
                    int off,
                    int len)
             throws java.io.IOException
Implement buffering on top of the readLine method of the wrapped ServletInputStream .
Parameters:
b - an array of bytes into which data is read.
off - an integer specifying the character at which this method begins reading.
len - an integer specifying the maximum number of bytes to read.
Returns:
an integer specifying the actual number of bytes read, or -1 if the end of the stream is reached.
Throws:
java.io.IOException - if an I/O error occurs.

read

public int read()
         throws java.io.IOException
Implement buffering on top of the read method of the wrapped ServletInputStream .
Overrides:
read in class java.io.FilterInputStream
Returns:
the next byte of data, or -1 if the end of the stream is reached.
Throws:
java.io.IOException - if an I/O error occurs.

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Implement buffering on top of the read method of the wrapped ServletInputStream .
Overrides:
read in class java.io.FilterInputStream
Parameters:
b - the buffer into which the data is read.
off - the start offset of the data.
len - the maximum number of bytes read.
Returns:
the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.
Throws:
java.io.IOException - if an I/O error occurs.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.