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

## com.sun.jimi.util
Class MemoryRandomAccessStorage

    java.lang.Object
      |
      +--com.sun.jimi.util.MemoryRandomAccessStorage

public class MemoryRandomAccessStorage
extends java.lang.Object
implements RandomAccessStorage

In-memory implementation of RandomAccessStorage.

Inner Class Summary
`protected class` | `MemoryRandomAccessStorage.MemoryInputStream` InputStream wrapper class.
`protected class` | `MemoryRandomAccessStorage.MemoryOutputStream` OutputStream wrapper class.

Field Summary
`protected java.io.InputStream` | `in`
`protected java.io.OutputStream` | `out`
`protected int` | `position`
`protected byte[]` | `storage`

Constructor Summary
`MemoryRandomAccessStorage(int storageSize)`

Method Summary
`java.io.InputStream` | `asInputStream()`
`java.io.OutputStream` | `asOutputStream()`
`void` | `seek(long pos)`
`void` | `skip(int bytes)`

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

Field Detail

### storage

    protected byte[] storage

### position

    protected int position

### out

    protected java.io.OutputStream out

### in

    protected java.io.InputStream in

Constructor Detail

### MemoryRandomAccessStorage

    public MemoryRandomAccessStorage(int storageSize)

Method Detail

### seek

    public void seek(long pos)

  Specified by:
    seek in interface RandomAccessStorage

### skip

    public void skip(int bytes)

  Specified by:
    skip in interface RandomAccessStorage

### asOutputStream

    public java.io.OutputStream asOutputStream()

  Specified by:
    asOutputStream in interface RandomAccessStorage

### asInputStream

    public java.io.InputStream asInputStream()

  Specified by:
    asInputStream in interface RandomAccessStorage

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