Codota Logo
VisibleBufferedInputStream.moveBufferTo
Code IndexAdd Codota to your IDE (free)

How to use
moveBufferTo
method
in
org.postgresql.core.VisibleBufferedInputStream

Best Java code snippets using org.postgresql.core.VisibleBufferedInputStream.moveBufferTo (Showing top 8 results out of 315)

  • Common ways to obtain VisibleBufferedInputStream
private void myMethod () {
VisibleBufferedInputStream v =
  • Codota IconSocket socket;new VisibleBufferedInputStream(socket.getInputStream(), int1)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

/**
 * Doubles the size of the buffer.
 */
private void doubleBuffer() {
 byte[] buf = new byte[buffer.length * 2];
 moveBufferTo(buf);
 buffer = buf;
}
origin: postgresql/postgresql

/**
 * Doubles the size of the buffer.
 */
private void doubleBuffer() {
  byte[] buf = new byte[buffer.length * 2];
  moveBufferTo(buf);
  buffer = buf;
}
origin: org.postgresql/postgresql

/**
 * Compacts the unread bytes of the buffer to the beginning of the buffer.
 */
private void compact() {
 moveBufferTo(buffer);
}
origin: postgresql/postgresql

/**
 * Compacts the unread bytes of the buffer to the beginning of the buffer.
 */
private void compact() {
  moveBufferTo(buffer);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Doubles the size of the buffer.
 */
private void doubleBuffer() {
  byte[] buf = new byte[buffer.length * 2];
  moveBufferTo(buf);
  buffer = buf;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Compacts the unread bytes of the buffer to the beginning of the buffer.
 */
private void compact() {
  moveBufferTo(buffer);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Doubles the size of the buffer.
 */
private void doubleBuffer() {
  byte[] buf = new byte[buffer.length * 2];
  moveBufferTo(buf);
  buffer = buf;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Compacts the unread bytes of the buffer to the beginning of the buffer.
 */
private void compact() {
  moveBufferTo(buffer);
}
org.postgresql.coreVisibleBufferedInputStreammoveBufferTo

Javadoc

Moves bytes from the buffer to the begining of the destination buffer. Also sets the index and endIndex variables.

Popular methods of VisibleBufferedInputStream

  • <init>
    Creates a new buffer around the given stream.
  • available
  • close
  • compact
    Compacts the unread bytes of the buffer to the beginning of the buffer.
  • doubleBuffer
    Doubles the size of the buffer.
  • ensureBytes
    Ensures that the buffer contains at least n bytes. This method invalidates the buffer and index fiel
  • getBuffer
    Returns direct handle to the used buffer. Use the #ensureBytesto prefill required bytes the buffer a
  • getIndex
    Returns the current read position in the buffer.
  • read
  • readMore
    Reads more bytes into the buffer.
  • scanCStringLength
    Scans the length of the next null terminated string (C-style string) from the stream.
  • skip
  • scanCStringLength,
  • skip,
  • peek

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
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