From 780b92ada9afcf1d58085a83a0b9e6bc982203d1 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 17 Feb 2015 17:25:57 +0000 Subject: Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz. --- docs/java/com/sleepycat/util/FastInputStream.html | 1308 ++++++++++----------- 1 file changed, 617 insertions(+), 691 deletions(-) (limited to 'docs/java/com/sleepycat/util/FastInputStream.html') diff --git a/docs/java/com/sleepycat/util/FastInputStream.html b/docs/java/com/sleepycat/util/FastInputStream.html index 7f470404..62522a18 100644 --- a/docs/java/com/sleepycat/util/FastInputStream.html +++ b/docs/java/com/sleepycat/util/FastInputStream.html @@ -1,720 +1,646 @@ - - - - - -FastInputStream (Oracle - Berkeley DB Java API) - - - - - - - - - - - - -
- - +//--> + + - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-

- -com.sleepycat.util -
-Class FastInputStream

-
-java.lang.Object
-  extended by java.io.InputStream
-      extended by com.sleepycat.util.FastInputStream
-
-
-
All Implemented Interfaces:
Closeable
-
-
-
Direct Known Subclasses:
TupleInput
-
-
-
-
public class FastInputStream
extends InputStream
- - -

-A replacement for ByteArrayInputStream that does not synchronize every +

+
com.sleepycat.util
+

Class FastInputStream

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    java.io.Closeable, java.lang.AutoCloseable
    +
    +
    +
    Direct Known Subclasses:
    +
    TupleInput
    +
    +
    +
    +
    public class FastInputStream
    +extends java.io.InputStream
    +
    A replacement for ByteArrayInputStream that does not synchronize every byte read. -

    This class extends InputStream and its read() +

    This class extends InputStream and its read() methods allow it to be used as a standard input stream. In addition, it provides readFast() methods that are not declared to throw IOException. IOException is never thrown by this - class.

    -

    - -

    -


    - -

    + class.

    +
  • +
+
+
+
    +
  • - - - - - - - - - - - - - - - - - - - - - - -
    -Field Summary
    -protected  byte[]buf - -
    -           
    -protected  intlen - -
    -           
    -protected  intmark - -
    -           
    -protected  intoff - -
    -           
    -  +
      +
    • + + +

      Field Summary

      + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeField and Description
      protected byte[]buf 
      protected intlen 
      protected intmark 
      protected intoff 
      +
    • +
    - - - - - - - - - - - - -
    -Constructor Summary
    FastInputStream(byte[] buffer) - -
    -          Creates an input stream.
    FastInputStream(byte[] buffer, - int offset, - int length) - -
    -          Creates an input stream.
    -  +
      +
    • + + +

      Constructor Summary

      + + + + + + + + + + + +
      Constructors 
      Constructor and Description
      FastInputStream(byte[] buffer) +
      Creates an input stream.
      +
      FastInputStream(byte[] buffer, + int offset, + int length) +
      Creates an input stream.
      +
      +
    • +
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
    -Method Summary
    - intavailable() - -
    -           
    - byte[]getBufferBytes() - -
    -          Returns the underlying data being read.
    - intgetBufferLength() - -
    -          Returns the end of the buffer being read.
    - intgetBufferOffset() - -
    -          Returns the offset at which data is being read from the buffer.
    - voidmark(int readLimit) - -
    -           
    - booleanmarkSupported() - -
    -           
    - intread() - -
    -           
    - intread(byte[] toBuf) - -
    -           
    - intread(byte[] toBuf, - int offset, - int length) - -
    -           
    - intreadFast() - -
    -          Equivalent to read() but does not throw - IOException.
    - intreadFast(byte[] toBuf) - -
    -          Equivalent to read(byte[]) but does not throw - IOException.
    - intreadFast(byte[] toBuf, - int offset, - int length) - -
    -          Equivalent to read(byte[],int,int) but does not throw - IOException.
    - voidreset() - -
    -           
    - longskip(long count) - -
    -           
    - voidskipFast(int count) - -
    -          Equivalent to skip() but takes an int parameter instead of a +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
      Methods 
      Modifier and TypeMethod and Description
      intavailable() 
      byte[]getBufferBytes() +
      Returns the underlying data being read.
      +
      intgetBufferLength() +
      Returns the end of the buffer being read.
      +
      intgetBufferOffset() +
      Returns the offset at which data is being read from the buffer.
      +
      voidmark(int readLimit) 
      booleanmarkSupported() 
      intread() 
      intread(byte[] toBuf) 
      intread(byte[] toBuf, + int offset, + int length) 
      intreadFast() +
      Equivalent to read() but does not throw + IOException.
      +
      intreadFast(byte[] toBuf) +
      Equivalent to read(byte[]) but does not throw + IOException.
      +
      intreadFast(byte[] toBuf, + int offset, + int length) +
      Equivalent to read(byte[],int,int) but does not throw + IOException.
      +
      voidreset() 
      longskip(long count) 
      voidskipFast(int count) +
      Equivalent to skip() but takes an int parameter instead of a long, and does not check whether the count given is larger than the - number of remaining bytes.
      - - - - - - - -
      Methods inherited from class java.io.InputStream
      close
      - - - - - - - -
      Methods inherited from class java.lang.Object
      clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      -  -

      - + number of remaining bytes. +

    +
      +
    • + + +

      Methods inherited from class java.io.InputStream

      +close
    • +
    +
      +
    • + + +

      Methods inherited from class java.lang.Object

      +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • +
    +
  • +
+ + +
+
+
    +
  • - - - - - - -
    -Field Detail
    - -

    -len

    -
    -protected int len
    -
    -
    -
    -
    -
    - -

    -off

    -
    -protected int off
    -
    -
    -
    -
    -
    - -

    -mark

    -
    -protected int mark
    -
    -
    -
    -
    -
    - -

    -buf

    -
    -protected byte[] buf
    -
    -
    -
    -
    - +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        len

        +
        protected int len
        +
      • +
      + + + +
        +
      • +

        off

        +
        protected int off
        +
      • +
      + + + +
        +
      • +

        mark

        +
        protected int mark
        +
      • +
      + + + +
        +
      • +

        buf

        +
        protected byte[] buf
        +
      • +
      +
    • +
    - - - - - - -
    -Constructor Detail
    - -

    -FastInputStream

    -
    -public FastInputStream(byte[] buffer)
    -
    -
    Creates an input stream. -

    -

    -
    Parameters:
    buffer - the data to read.
    -
    -
    - -

    -FastInputStream

    -
    -public FastInputStream(byte[] buffer,
    -                       int offset,
    -                       int length)
    -
    -
    Creates an input stream. -

    -

    -
    Parameters:
    buffer - the data to read.
    offset - the byte offset at which to begin reading.
    length - the number of bytes to read.
    -
    - +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FastInputStream

        +
        public FastInputStream(byte[] buffer)
        +
        Creates an input stream.
        +
        Parameters:
        buffer - the data to read.
        +
      • +
      + + + +
        +
      • +

        FastInputStream

        +
        public FastInputStream(byte[] buffer,
        +               int offset,
        +               int length)
        +
        Creates an input stream.
        +
        Parameters:
        buffer - the data to read.
        offset - the byte offset at which to begin reading.
        length - the number of bytes to read.
        +
      • +
      +
    • +
    - - - - - - -
    -Method Detail
    - -

    -available

    -
    -public int available()
    -
    -
    -
    Overrides:
    available in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -markSupported

    -
    -public boolean markSupported()
    -
    -
    -
    Overrides:
    markSupported in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -mark

    -
    -public void mark(int readLimit)
    -
    -
    -
    Overrides:
    mark in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -reset

    -
    -public void reset()
    -
    -
    -
    Overrides:
    reset in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -skip

    -
    -public long skip(long count)
    -
    -
    -
    Overrides:
    skip in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -read

    -
    -public int read()
    -
    -
    -
    Specified by:
    read in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -read

    -
    -public int read(byte[] toBuf)
    -
    -
    -
    Overrides:
    read in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -read

    -
    -public int read(byte[] toBuf,
    -                int offset,
    -                int length)
    -
    -
    -
    Overrides:
    read in class InputStream
    -
    -
    -
    -
    -
    -
    - -

    -skipFast

    -
    -public final void skipFast(int count)
    -
    -
    Equivalent to skip() but takes an int parameter instead of a +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        available

        +
        public int available()
        +
        +
        Overrides:
        +
        available in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        markSupported

        +
        public boolean markSupported()
        +
        +
        Overrides:
        +
        markSupported in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        mark

        +
        public void mark(int readLimit)
        +
        +
        Overrides:
        +
        mark in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        reset

        +
        public void reset()
        +
        +
        Overrides:
        +
        reset in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        skip

        +
        public long skip(long count)
        +
        +
        Overrides:
        +
        skip in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read()
        +
        +
        Specified by:
        +
        read in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] toBuf)
        +
        +
        Overrides:
        +
        read in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        read

        +
        public int read(byte[] toBuf,
        +       int offset,
        +       int length)
        +
        +
        Overrides:
        +
        read in class java.io.InputStream
        +
        +
      • +
      + + + +
        +
      • +

        skipFast

        +
        public final void skipFast(int count)
        +
        Equivalent to skip() but takes an int parameter instead of a long, and does not check whether the count given is larger than the - number of remaining bytes. -

        -

        -
        See Also:
        skip(long)
        -
        -
    -
    - -

    -readFast

    -
    -public final int readFast()
    -
    -
    Equivalent to read() but does not throw - IOException. -

    -

    -
    See Also:
    read()
    -
    -
    -
    - -

    -readFast

    -
    -public final int readFast(byte[] toBuf)
    -
    -
    Equivalent to read(byte[]) but does not throw - IOException. -

    -

    -
    See Also:
    read(byte[])
    -
    -
    -
    - -

    -readFast

    -
    -public final int readFast(byte[] toBuf,
    -                          int offset,
    -                          int length)
    -
    -
    Equivalent to read(byte[],int,int) but does not throw - IOException. -

    -

    -
    See Also:
    read(byte[],int,int)
    -
    -
    -
    - -

    -getBufferBytes

    -
    -public final byte[] getBufferBytes()
    -
    -
    Returns the underlying data being read. -

    -

    - -
    Returns:
    the underlying data.
    -
    -
    -
    - -

    -getBufferOffset

    -
    -public final int getBufferOffset()
    -
    -
    Returns the offset at which data is being read from the buffer. -

    -

    - -
    Returns:
    the offset at which data is being read.
    -
    -
    -
    - -

    -getBufferLength

    -
    -public final int getBufferLength()
    -
    -
    Returns the end of the buffer being read. -

    -

    - -
    Returns:
    the end of the buffer.
    -
    -
    + number of remaining bytes.
+
See Also:
skip(long)
+ + + + + +
    +
  • +

    readFast

    +
    public final int readFast()
    +
    Equivalent to read() but does not throw + IOException.
    +
    See Also:
    read()
    +
  • +
+ + + +
    +
  • +

    readFast

    +
    public final int readFast(byte[] toBuf)
    +
    Equivalent to read(byte[]) but does not throw + IOException.
    +
    See Also:
    read(byte[])
    +
  • +
+ + + +
    +
  • +

    readFast

    +
    public final int readFast(byte[] toBuf,
    +           int offset,
    +           int length)
    +
    Equivalent to read(byte[],int,int) but does not throw + IOException.
    +
    See Also:
    read(byte[],int,int)
    +
  • +
+ + + +
    +
  • +

    getBufferBytes

    +
    public final byte[] getBufferBytes()
    +
    Returns the underlying data being read.
    +
    Returns:
    the underlying data.
    +
  • +
+ + + +
    +
  • +

    getBufferOffset

    +
    public final int getBufferOffset()
    +
    Returns the offset at which data is being read from the buffer.
    +
    Returns:
    the offset at which data is being read.
    +
  • +
+ + + +
    +
  • +

    getBufferLength

    +
    public final int getBufferLength()
    +
    Returns the end of the buffer being read.
    +
    Returns:
    the end of the buffer.
    +
  • +
+ + + + +
+ -
- - - - - - - - - - - - - - - - - - -
-Berkeley DB
version 5.3.21
-
- + + +
+ + +
+ + + - -
-Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. - - +

Copyright (c) 1996, 2015 Oracle and/or its affiliates. All rights reserved.

+ + -- cgit v1.2.1