Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/sql/Blob.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    11/* Blob.java -- Access a SQL Binary Large OBject.
    2    Copyright (C) 1999, 2000 Free Software Foundation, Inc.
     2   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    33
    44This file is part of GNU Classpath.
     
    3636exception statement from your version. */
    3737
    38 
    3938package java.sql;
    4039
    4140import java.io.InputStream;
     41
    4242
    4343/**
    44   * This interface specified methods for accessing a SQL BLOB (Binary
    45   * Large OBject) type.
    46   *
    47   * @author Aaron M. Renn ([email protected])
    48   */
    49 public interface Blob
     44 * This interface specified methods for accessing a SQL BLOB (Binary
     45 * Large OBject) type.
     46 *
     47 * @author Aaron M. Renn ([email protected])
     48 * @since 1.2
     49 */
     50public interface Blob
    5051{
     52
     53
     54
     55
     56
     57
     58
    5159
    52 /*************************************************************************/
     60  /**
     61   * This method returns up to the requested bytes of this BLOB as a
     62   * <code>byte</code> array.
     63   *
     64   * @param pos The index into the BLOB to start returning bytes from.
     65   * @param length The requested number of bytes to return.
     66   * @return The requested bytes from the BLOB.
     67   * @exception SQLException If an error occurs.
     68   */
     69  public byte[] getBytes(long pos, int length) throws SQLException;
    5370
    54 /**
    55   * This method returns the number of bytes in the BLOB.
    56   *
    57   * @return The number of bytes in the BLOB.
    58   *
    59   * @exception SQLException If an error occurs.
    60   */
    61 public abstract long
    62 length() throws SQLException;
     71  /**
     72   * This method returns a stream that will read the bytes of the BLOB.
     73   *
     74   * @return A stream that will read the bytes of the BLOB.
     75   * @exception SQLException If an error occurs.
     76   */
     77  public InputStream getBinaryStream() throws SQLException;
    6378
    64 /*************************************************************************/
     79  /**
     80   * This method returns the index into the BLOB at which the first instance
     81   * of the specified bytes occur.  The searching starts at the specified
     82   * index into the BLOB.
     83   *
     84   * @param pattern The byte pattern to search for.
     85   * @param offset The index into the BLOB to starting searching for the pattern.
     86   * @return The offset at which the pattern is first found, or -1 if the
     87   *         pattern is not found.
     88   * @exception SQLException If an error occurs.
     89   */
     90  public long position(byte[] pattern, long start) throws SQLException;
    6591
    66 /**
    67   * This method returns up to the requested bytes of this BLOB as a
    68   * <code>byte</code> array.
    69   *
    70   * @param offset The index into the BLOB to start returning bytes from.
    71   * @param length The requested number of bytes to return.
    72   *
    73   * @return The requested bytes from the BLOB.
    74   *
    75   * @exception SQLException If an error occurs.
    76   */
    77 public abstract byte[]
    78 getBytes(long offset, int length) throws SQLException;
     92  /**
     93   * This method returns the index into the BLOB at which the first instance
     94   * of the specified pattern occurs.  The searching starts at the specified
     95   * index into this BLOB.  The bytes in the specified <code>Blob</code> are
     96   * used as the search pattern.
     97   *
     98   * @param pattern The <code>Blob</code> containing the byte pattern to
     99   *        search for.
     100   * @param offset The index into the BLOB to starting searching for the pattern.
     101   * @return The offset at which the pattern is first found, or -1 if the
     102   *         pattern is not found.
     103   * @exception SQLException If an error occurs.
     104   */
     105  public long position(Blob pattern, long start) throws SQLException;
    79106
    80 /*************************************************************************/
     107  /**
     108   * @exception SQLException If an error occurs.
     109   * @since 1.4
     110   */
     111  public int setBytes(long pos, byte[] bytes) throws SQLException;
    81112
    82 /**
    83   * This method returns a stream that will read the bytes of the BLOB.
    84   *
    85   * @return A stream that will read the bytes of the BLOB.
    86   *
    87   * @exception SQLException If an error occurs.
    88   */
    89 public abstract InputStream
    90 getBinaryStream() throws SQLException;
     113  /**
     114   * @exception SQLException If an error occurs.
     115   * @since 1.4
     116   */
     117  public int setBytes(long pos, byte[] bytes, int offset, int len)
     118    throws SQLException;
    91119
    92 /*************************************************************************/
     120  /**
     121   * @exception SQLException If an error occurs.
     122   * @since 1.4
     123   */
     124  public OutputStream setBinaryStream(long pos) throws SQLException;
    93125
    94 /**
    95   * This method returns the index into the BLOB at which the first instance
    96   * of the specified bytes occur.  The searching starts at the specified
    97   * index into the BLOB.
    98   *
    99   * @param pattern The byte pattern to search for.
    100   * @param offset The index into the BLOB to starting searching for the pattern.
    101   *
    102   * @return The offset at which the pattern is first found, or -1 if the
    103   * pattern is not found.
    104   *
    105   * @exception SQLException If an error occurs.
    106   */
    107 public abstract long
    108 position(byte[] pattern, long offset) throws SQLException;
    109 
    110 /*************************************************************************/
    111 
    112 /**
    113   * This method returns the index into the BLOB at which the first instance
    114   * of the specified pattern occurs.  The searching starts at the specified
    115   * index into this BLOB.  The bytes in the specified <code>Blob</code> are
    116   * used as the search pattern.
    117   *
    118   * @param pattern The <code>Blob</code> containing the byte pattern to
    119   * search for.
    120   * @param offset The index into the BLOB to starting searching for the pattern.
    121   *
    122   * @return The offset at which the pattern is first found, or -1 if the
    123   * pattern is not found.
    124   *
    125   * @exception SQLException If an error occurs.
    126   */
    127 public abstract long
    128 position(Blob pattern, long offset) throws SQLException;
    129 
    130 } // interface Blob
    131 
     126  /**
     127   * @exception SQLException If an error occurs.
     128   * @since 1.4
     129   */
     130  public void truncate(long len) throws SQLException;
     131}
Note: See TracChangeset for help on using the changeset viewer.