Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.protocols.email.beans
Class BodyPart.OffsetInputStream

    java.lang.Object
      java.io.InputStream
          oracle.ifs.protocols.email.beans.BodyPart.OffsetInputStream

All Implemented Interfaces:
  java.io.Closeable

Enclosing class:
  BodyPart

    public class BodyPart.OffsetInputStream

extends java.io.InputStream

The OffsetInputStream class is used to select a range of bytes from an RACI and deliver those and only those bytes.

(Published)

Constructor Summary
`BodyPart.OffsetInputStream(RandomAccessContentInterface raci, long start, long end)` Constructs an OffsetInputStream

Method Summary
`int` | `available()` Gets the number of bytes remaining in the stream.
`int` | `read()`
`int` | `read(byte[] b)`
`int` | `read(byte[] b, int off, int len)`

Methods inherited from class java.io.InputStream
`close, mark, markSupported, reset, skip`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BodyPart.OffsetInputStream

    public BodyPart.OffsetInputStream(RandomAccessContentInterface raci,
                                      long start,
                                      long end)
                               throws java.io.IOException

  Constructs an OffsetInputStream

  Parameters:
    `raci` - The RACI to retrieve the bytes from
    `start` - The offset into the RACI of the first byte to return
    `end` - The offset into the RACI of the byte after the last byte to return
  Throws:
    `java.io.IOException`
  (Published)

Method Detail

### read

    public int read()
             throws java.io.IOException

  Specified by:
    `read` in class `java.io.InputStream`
  Throws:
    `java.io.IOException`

### read

    public int read(byte[] b)
             throws java.io.IOException

  Overrides:
    `read` in class `java.io.InputStream`
  Throws:
    `java.io.IOException`

### read

    public int read(byte[] b,
                    int off,
                    int len)
             throws java.io.IOException

  Overrides:
    `read` in class `java.io.InputStream`
  Throws:
    `java.io.IOException`

### available

    public int available()

  Description copied from class: `BodyPart.OffsetInputStream`
  Gets the number of bytes remaining in the stream.

  Overrides:
    `available` in class `java.io.InputStream`
  Returns:
    The number of bytes remaining before the EOF.
  (Published)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD