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
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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