congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
VisibleBufferedInputStream.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.postgresql.core.VisibleBufferedInputStream
constructor

Best Java code snippets using org.postgresql.core.VisibleBufferedInputStream.<init> (Showing top 4 results out of 315)

origin: org.postgresql/postgresql

/**
 * Switch this stream to using a new socket. Any existing socket is <em>not</em> closed; it's
 * assumed that we are changing to a new socket that delegates to the original socket (e.g. SSL).
 *
 * @param socket the new socket to change to
 * @throws IOException if something goes wrong
 */
public void changeSocket(Socket socket) throws IOException {
 this.connection = socket;
 // Submitted by Jason Venner <jason@idiom.com>. Disable Nagle
 // as we are selective about flushing output only when we
 // really need to.
 connection.setTcpNoDelay(true);
 // Buffer sizes submitted by Sverre H Huseby <sverrehu@online.no>
 pg_input = new VisibleBufferedInputStream(connection.getInputStream(), 8192);
 pg_output = new BufferedOutputStream(connection.getOutputStream(), 8192);
 if (encoding != null) {
  setEncoding(encoding);
 }
}
origin: postgresql/postgresql

/**
 * Switch this stream to using a new socket. Any existing socket
 * is <em>not</em> closed; it's assumed that we are changing to
 * a new socket that delegates to the original socket (e.g. SSL).
 *
 * @param socket the new socket to change to
 * @throws IOException if something goes wrong
 */
public void changeSocket(Socket socket) throws IOException {
  this.connection = socket;
  // Submitted by Jason Venner <jason@idiom.com>. Disable Nagle
  // as we are selective about flushing output only when we
  // really need to.
  connection.setTcpNoDelay(true);
  // Buffer sizes submitted by Sverre H Huseby <sverrehu@online.no>
  pg_input = new VisibleBufferedInputStream(connection.getInputStream(), 8192);
  pg_output = new BufferedOutputStream(connection.getOutputStream(), 8192);
  if (encoding != null)
    setEncoding(encoding);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Switch this stream to using a new socket. Any existing socket
 * is <em>not</em> closed; it's assumed that we are changing to
 * a new socket that delegates to the original socket (e.g. SSL).
 *
 * @param socket the new socket to change to
 * @throws IOException if something goes wrong
 */
public void changeSocket(Socket socket) throws IOException {
  this.connection = socket;
  // Submitted by Jason Venner <jason@idiom.com>. Disable Nagle
  // as we are selective about flushing output only when we
  // really need to.
  connection.setTcpNoDelay(true);
  // Buffer sizes submitted by Sverre H Huseby <sverrehu@online.no>
  pg_input = new VisibleBufferedInputStream(connection.getInputStream(), 8192);
  pg_output = new BufferedOutputStream(connection.getOutputStream(), 8192);
  if (encoding != null)
    setEncoding(encoding);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Switch this stream to using a new socket. Any existing socket
 * is <em>not</em> closed; it's assumed that we are changing to
 * a new socket that delegates to the original socket (e.g. SSL).
 *
 * @param socket the new socket to change to
 * @throws IOException if something goes wrong
 */
public void changeSocket(Socket socket) throws IOException {
  this.connection = socket;
  // Submitted by Jason Venner <jason@idiom.com>. Disable Nagle
  // as we are selective about flushing output only when we
  // really need to.
  connection.setTcpNoDelay(true);
  // Buffer sizes submitted by Sverre H Huseby <sverrehu@online.no>
  pg_input = new VisibleBufferedInputStream(connection.getInputStream(), 8192);
  pg_output = new BufferedOutputStream(connection.getOutputStream(), 8192);
  if (encoding != null)
    setEncoding(encoding);
}
org.postgresql.coreVisibleBufferedInputStream<init>

Javadoc

Creates a new buffer around the given stream.

Popular methods of VisibleBufferedInputStream

  • 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.
  • moveBufferTo
    Moves bytes from the buffer to the begining of the destination buffer. Also sets the index and endIn
  • 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

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Permission (java.security)
    Legacy security code; do not use.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JCheckBox (javax.swing)
  • JList (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now