Changeset 1391 for branches/GNU/src/gcc/libjava/java/sql/Blob.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/sql/Blob.java (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/sql/Blob.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 1 /* 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. 3 3 4 4 This file is part of GNU Classpath. … … 36 36 exception statement from your version. */ 37 37 38 39 38 package java.sql; 40 39 41 40 import java.io.InputStream; 41 42 42 43 43 /** 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 */ 50 public interface Blob 50 51 { 52 53 54 55 56 57 58 51 59 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; 53 70 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; 63 78 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; 65 91 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; 79 106 80 /*************************************************************************/ 107 /** 108 * @exception SQLException If an error occurs. 109 * @since 1.4 110 */ 111 public int setBytes(long pos, byte[] bytes) throws SQLException; 81 112 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; 91 119 92 /*************************************************************************/ 120 /** 121 * @exception SQLException If an error occurs. 122 * @since 1.4 123 */ 124 public OutputStream setBinaryStream(long pos) throws SQLException; 93 125 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 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
