Codota Logo
AbstractJdbc3Blob.assertPosition
Code IndexAdd Codota to your IDE (free)

How to use
assertPosition
method
in
org.postgresql.jdbc3.AbstractJdbc3Blob

Best Java code snippets using org.postgresql.jdbc3.AbstractJdbc3Blob.assertPosition (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

/**
 * Writes all or part of the given <code>byte</code> array to the
 * <code>BLOB</code> value that this <code>Blob</code> object represents
 * and returns the number of bytes written.
 * Writing starts at position <code>pos</code> in the <code>BLOB</code>
 * value; <code>len</code> bytes from the given byte array are written.
 *
 * @param pos the position in the <code>BLOB</code> object at which
 *    to start writing
 * @param bytes the array of bytes to be written to this <code>BLOB</code>
 *    object
 * @param offset the offset into the array <code>bytes</code> at which
 *    to start reading the bytes to be set
 * @param len the number of bytes to be written to the <code>BLOB</code>
 *    value from the array of bytes <code>bytes</code>
 * @return the number of bytes written
 * @exception SQLException if there is an error accessing the
 *     <code>BLOB</code> value
 * @see #getBytes
 * @since 1.4
 */
public synchronized int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
{
  assertPosition(pos);
  lo.seek((int) (pos-1));
  lo.write(bytes, offset, len);
  return len;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Writes all or part of the given <code>byte</code> array to the
 * <code>BLOB</code> value that this <code>Blob</code> object represents
 * and returns the number of bytes written.
 * Writing starts at position <code>pos</code> in the <code>BLOB</code>
 * value; <code>len</code> bytes from the given byte array are written.
 *
 * @param pos the position in the <code>BLOB</code> object at which
 *    to start writing
 * @param bytes the array of bytes to be written to this <code>BLOB</code>
 *    object
 * @param offset the offset into the array <code>bytes</code> at which
 *    to start reading the bytes to be set
 * @param len the number of bytes to be written to the <code>BLOB</code>
 *    value from the array of bytes <code>bytes</code>
 * @return the number of bytes written
 * @exception SQLException if there is an error accessing the
 *     <code>BLOB</code> value
 * @see #getBytes
 * @since 1.4
 */
public synchronized int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
{
  assertPosition(pos);
  lo.seek((int) (pos-1));
  lo.write(bytes, offset, len);
  return len;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Writes all or part of the given <code>byte</code> array to the
 * <code>BLOB</code> value that this <code>Blob</code> object represents
 * and returns the number of bytes written.
 * Writing starts at position <code>pos</code> in the <code>BLOB</code>
 * value; <code>len</code> bytes from the given byte array are written.
 *
 * @param pos the position in the <code>BLOB</code> object at which
 *    to start writing
 * @param bytes the array of bytes to be written to this <code>BLOB</code>
 *    object
 * @param offset the offset into the array <code>bytes</code> at which
 *    to start reading the bytes to be set
 * @param len the number of bytes to be written to the <code>BLOB</code>
 *    value from the array of bytes <code>bytes</code>
 * @return the number of bytes written
 * @exception SQLException if there is an error accessing the
 *     <code>BLOB</code> value
 * @see #getBytes
 * @since 1.4
 */
public synchronized int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
{
  assertPosition(pos);
  lo.seek((int) (pos-1));
  lo.write(bytes, offset, len);
  return len;
}
org.postgresql.jdbc3AbstractJdbc3BlobassertPosition

Popular methods of AbstractJdbc3Blob

  • setBytes
    Writes all or part of the given byte array to theBLOB value that this Blob object represents and re

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now