From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- apidocs/com/amazon/carbonado/lob/FileBlob.html | 468 +++++++++++++++++++++++++ 1 file changed, 468 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/lob/FileBlob.html (limited to 'apidocs/com/amazon/carbonado/lob/FileBlob.html') diff --git a/apidocs/com/amazon/carbonado/lob/FileBlob.html b/apidocs/com/amazon/carbonado/lob/FileBlob.html new file mode 100644 index 0000000..4f41f03 --- /dev/null +++ b/apidocs/com/amazon/carbonado/lob/FileBlob.html @@ -0,0 +1,468 @@ + + + + + + +FileBlob (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.lob
+

Class FileBlob

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Blob, Lob
    +
    +
    +
    +
    public class FileBlob
    +extends AbstractBlob
    +
    Implementation of a Blob which is backed by a File.
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Summary

      + + + + + + + + +
      Constructors 
      Constructor and Description
      FileBlob(java.io.File file) 
      +
    • +
    + +
      +
    • + + +

      Method Summary

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Methods 
      Modifier and TypeMethod and Description
      longgetLength() +
      Returns the length of this Blob, in bytes.
      +
      java.lang.ObjectgetLocator() +
      Always returns null.
      +
      java.io.InputStreamopenInputStream() +
      Returns an InputStream for reading Blob data positioned at the + start.
      +
      java.io.InputStreamopenInputStream(long pos) +
      Returns an InputStream for reading Blob data.
      +
      java.io.InputStreamopenInputStream(long pos, + int bufferSize) +
      Returns an InputStream for reading Blob data.
      +
      java.io.OutputStreamopenOutputStream() +
      Returns an OutputStream for writing Blob data, positioned at the + start.
      +
      java.io.OutputStreamopenOutputStream(long pos) +
      Returns an OutputStream for writing Blob data.
      +
      java.io.OutputStreamopenOutputStream(long pos, + int bufferSize) +
      Returns an OutputStream for writing Blob data.
      +
      voidsetLength(long length) +
      Set the length of this Blob, in bytes.
      +
      + +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        FileBlob

        +
        public FileBlob(java.io.File file)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        openInputStream

        +
        public java.io.InputStream openInputStream()
        +                                    throws FetchException
        +
        Description copied from interface: Blob
        +
        Returns an InputStream for reading Blob data positioned at the + start. The Blob implementation selects an appropriate buffer size for + the stream.
        +
        Returns:
        InputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        openInputStream

        +
        public java.io.InputStream openInputStream(long pos)
        +                                    throws FetchException
        +
        Description copied from interface: Blob
        +
        Returns an InputStream for reading Blob data. The Blob implementation + selects an appropriate buffer size for the stream.
        +
        Parameters:
        pos - desired zero-based position to read from
        +
        Returns:
        InputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        openInputStream

        +
        public java.io.InputStream openInputStream(long pos,
        +                                  int bufferSize)
        +                                    throws FetchException
        +
        Description copied from interface: Blob
        +
        Returns an InputStream for reading Blob data. A suggested buffer size + must be provided, but it might be ignored by the Blob implementation.
        +
        Parameters:
        pos - desired zero-based position to read from
        bufferSize - suggest that the input stream buffer be at least this large (in bytes)
        +
        Returns:
        InputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        getLength

        +
        public long getLength()
        +               throws FetchException
        +
        Description copied from interface: Blob
        +
        Returns the length of this Blob, in bytes.
        +
        Throws:
        +
        FetchException
        +
      • +
      + + + +
        +
      • +

        openOutputStream

        +
        public java.io.OutputStream openOutputStream()
        +                                      throws PersistException
        +
        Description copied from interface: Blob
        +
        Returns an OutputStream for writing Blob data, positioned at the + start. The Blob implementation selects an appropriate buffer size for + the stream.
        +
        Returns:
        OutputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        openOutputStream

        +
        public java.io.OutputStream openOutputStream(long pos)
        +                                      throws PersistException
        +
        Description copied from interface: Blob
        +
        Returns an OutputStream for writing Blob data. The Blob implementation + selects an appropriate buffer size for the stream.
        +
        Parameters:
        pos - desired zero-based position to write to
        +
        Returns:
        OutputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        openOutputStream

        +
        public java.io.OutputStream openOutputStream(long pos,
        +                                    int bufferSize)
        +                                      throws PersistException
        +
        Description copied from interface: Blob
        +
        Returns an OutputStream for writing Blob data. A suggested buffer size + must be provided, but it might be ignored by the Blob implementation.
        +
        Parameters:
        pos - desired zero-based position to write to
        bufferSize - suggest that the output stream buffer be at least this large (in bytes)
        +
        Returns:
        OutputStream for this Blob, which is not guaranteed to be thread-safe
        +
        Throws:
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        setLength

        +
        public void setLength(long length)
        +               throws PersistException
        +
        Description copied from interface: Blob
        +
        Set the length of this Blob, in bytes. If the new length is shorter, the + Blob is truncated. If the new length is longer, the Blob is padded with + zeros.
        +
        Parameters:
        length - new length to set to
        +
        Throws:
        +
        PersistDeniedException - if Blob is read-only
        +
        PersistException
        +
      • +
      + + + +
        +
      • +

        getLocator

        +
        public java.lang.Object getLocator()
        +
        Always returns null.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3