Codota Logo
PGStream.SendStream
Code IndexAdd Codota to your IDE (free)

How to use
SendStream
method
in
org.postgresql.core.PGStream

Best Java code snippets using org.postgresql.core.PGStream.SendStream (Showing top 6 results out of 315)

  • Common ways to obtain PGStream
private void myMethod () {
PGStream p =
  • Codota IconString host;new PGStream(host, port)
  • Smart code suggestions by Codota
}
origin: postgresql/postgresql

private static void streamBytea(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
origin: postgresql/postgresql

private void copyStream(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private void copyStream(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
origin: org.ancoron.postgresql/org.postgresql

private void copyStream(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
origin: org.ancoron.postgresql/org.postgresql

private static void streamBytea(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private static void streamBytea(PGStream pgStream, StreamWrapper wrapper) throws IOException {
  byte[] rawData = wrapper.getBytes();
  if (rawData != null)
  {
    pgStream.Send(rawData, wrapper.getOffset(), wrapper.getLength());
    return ;
  }
  pgStream.SendStream(wrapper.getStream(), wrapper.getLength());
}
org.postgresql.corePGStreamSendStream

Javadoc

Copy data from an input stream to the connection.

Popular methods of PGStream

  • <init>
    Constructor: Connect to the PostgreSQL back end and return a stream connection.
  • changeSocket
    Switch this stream to using a new socket. Any existing socket is not closed; it's assumed that we ar
  • close
    Closes the connection.
  • flush
    Flush any pending output to the backend.
  • getEncoding
  • getSocket
  • hasMessagePending
    Check for pending backend messages without blocking. Might return false when there actually are mess
  • setEncoding
    Change the encoding used by this connection.
  • Receive
    Reads in a given number of bytes from the backend
  • ReceiveChar
    Receives a single character from the backend
  • ReceiveEOF
    Consume an expected EOF from the backend
  • ReceiveInteger2
    Receives a two byte integer from the backend
  • ReceiveEOF,
  • ReceiveInteger2,
  • ReceiveInteger4,
  • ReceiveString,
  • ReceiveTupleV2,
  • ReceiveTupleV3,
  • Send,
  • SendChar,
  • SendInteger2,
  • SendInteger4

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
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