Tabnine Logo
VisibleBufferedInputStream.read
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: postgresql/postgresql

/**
 * Receives a four byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger4() throws IOException
{
  if (pg_input.read(_int4buf) != 4)
    throw new EOFException();
  return (_int4buf[0] & 0xFF) << 24 | (_int4buf[1] & 0xFF) << 16 | (_int4buf[2] & 0xFF) << 8 | _int4buf[3] & 0xFF;
}
origin: org.postgresql/postgresql

/**
 * Receives a two byte integer from the backend.
 *
 * @return the integer received from the backend
 * @throws IOException if an I/O error occurs
 */
public int receiveInteger2() throws IOException {
 if (pg_input.read(_int2buf) != 2) {
  throw new EOFException();
 }
 return (_int2buf[0] & 0xFF) << 8 | _int2buf[1] & 0xFF;
}
origin: postgresql/postgresql

/**
 * Receives a two byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger2() throws IOException
{
  if (pg_input.read(_int2buf) != 2)
    throw new EOFException();
  return (_int2buf[0] & 0xFF) << 8 | _int2buf[1] & 0xFF;
}
origin: org.postgresql/postgresql

/**
 * Receives a single character from the backend.
 *
 * @return the character received
 * @throws IOException if an I/O Error occurs
 */
public int receiveChar() throws IOException {
 int c = pg_input.read();
 if (c < 0) {
  throw new EOFException();
 }
 return c;
}
origin: org.postgresql/postgresql

/**
 * Receives a four byte integer from the backend.
 *
 * @return the integer received from the backend
 * @throws IOException if an I/O error occurs
 */
public int receiveInteger4() throws IOException {
 if (pg_input.read(_int4buf) != 4) {
  throw new EOFException();
 }
 return (_int4buf[0] & 0xFF) << 24 | (_int4buf[1] & 0xFF) << 16 | (_int4buf[2] & 0xFF) << 8
   | _int4buf[3] & 0xFF;
}
origin: postgresql/postgresql

/**
 * Receives a single character from the backend
 *
 * @return the character received
 * @exception IOException if an I/O Error occurs
 */
public int ReceiveChar() throws IOException
{
  int c = pg_input.read();
  if (c < 0)
    throw new EOFException();
  return c;
}
origin: org.postgresql/postgresql

/**
 * Reads in a given number of bytes from the backend.
 *
 * @param buf buffer to store result
 * @param off offset in buffer
 * @param siz number of bytes to read
 * @throws IOException if a data I/O error occurs
 */
public void receive(byte[] buf, int off, int siz) throws IOException {
 int s = 0;
 while (s < siz) {
  int w = pg_input.read(buf, off + s, siz - s);
  if (w < 0) {
   throw new EOFException();
  }
  s += w;
 }
}
origin: postgresql/postgresql

/**
 * Reads in a given number of bytes from the backend
 *
 * @param buf buffer to store result
 * @param off offset in buffer
 * @param siz number of bytes to read
 * @exception IOException if a data I/O error occurs
 */
public void Receive(byte[] buf, int off, int siz) throws IOException
{
  int s = 0;
  while (s < siz)
  {
    int w = pg_input.read(buf, off + s, siz - s);
    if (w < 0)
      throw new EOFException();
    s += w;
  }
}
origin: postgresql/postgresql

/**
 * Consume an expected EOF from the backend
 * @exception SQLException if we get something other than an EOF
 */
public void ReceiveEOF() throws SQLException, IOException
{
  int c = pg_input.read();
  if (c < 0)
    return;
  throw new PSQLException(GT.tr("Expected an EOF from server, got: {0}", new Integer(c)), PSQLState.COMMUNICATION_ERROR);
}
origin: org.postgresql/postgresql

/**
 * Consume an expected EOF from the backend.
 *
 * @throws IOException if an I/O error occurs
 * @throws SQLException if we get something other than an EOF
 */
public void receiveEOF() throws SQLException, IOException {
 int c = pg_input.read();
 if (c < 0) {
  return;
 }
 throw new PSQLException(GT.tr("Expected an EOF from server, got: {0}", c),
   PSQLState.COMMUNICATION_ERROR);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Receives a four byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger4() throws IOException
{
  if (pg_input.read(_int4buf) != 4)
    throw new EOFException();
  return (_int4buf[0] & 0xFF) << 24 | (_int4buf[1] & 0xFF) << 16 | (_int4buf[2] & 0xFF) << 8 | _int4buf[3] & 0xFF;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Receives a four byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger4() throws IOException
{
  if (pg_input.read(_int4buf) != 4)
    throw new EOFException();
  return (_int4buf[0] & 0xFF) << 24 | (_int4buf[1] & 0xFF) << 16 | (_int4buf[2] & 0xFF) << 8 | _int4buf[3] & 0xFF;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Receives a two byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger2() throws IOException
{
  if (pg_input.read(_int2buf) != 2)
    throw new EOFException();
  return (_int2buf[0] & 0xFF) << 8 | _int2buf[1] & 0xFF;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Receives a two byte integer from the backend
 *
 * @return the integer received from the backend
 * @exception IOException if an I/O error occurs
 */
public int ReceiveInteger2() throws IOException
{
  if (pg_input.read(_int2buf) != 2)
    throw new EOFException();
  return (_int2buf[0] & 0xFF) << 8 | _int2buf[1] & 0xFF;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Receives a single character from the backend
 *
 * @return the character received
 * @exception IOException if an I/O Error occurs
 */
public int ReceiveChar() throws IOException
{
  int c = pg_input.read();
  if (c < 0)
    throw new EOFException();
  return c;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Receives a single character from the backend
 *
 * @return the character received
 * @exception IOException if an I/O Error occurs
 */
public int ReceiveChar() throws IOException
{
  int c = pg_input.read();
  if (c < 0)
    throw new EOFException();
  return c;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Reads in a given number of bytes from the backend
 *
 * @param buf buffer to store result
 * @param off offset in buffer
 * @param siz number of bytes to read
 * @exception IOException if a data I/O error occurs
 */
public void Receive(byte[] buf, int off, int siz) throws IOException
{
  int s = 0;
  while (s < siz)
  {
    int w = pg_input.read(buf, off + s, siz - s);
    if (w < 0)
      throw new EOFException();
    s += w;
  }
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Reads in a given number of bytes from the backend
 *
 * @param buf buffer to store result
 * @param off offset in buffer
 * @param siz number of bytes to read
 * @exception IOException if a data I/O error occurs
 */
public void Receive(byte[] buf, int off, int siz) throws IOException
{
  int s = 0;
  while (s < siz)
  {
    int w = pg_input.read(buf, off + s, siz - s);
    if (w < 0)
      throw new EOFException();
    s += w;
  }
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Consume an expected EOF from the backend
 * @exception SQLException if we get something other than an EOF
 */
public void ReceiveEOF() throws SQLException, IOException
{
  int c = pg_input.read();
  if (c < 0)
    return;
  throw new PSQLException(GT.tr("Expected an EOF from server, got: {0}", new Integer(c)), PSQLState.COMMUNICATION_ERROR);
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Consume an expected EOF from the backend
 * @exception SQLException if we get something other than an EOF
 */
public void ReceiveEOF() throws SQLException, IOException
{
  int c = pg_input.read();
  if (c < 0)
    return;
  throw new PSQLException(GT.tr("Expected an EOF from server, got: {0}", new Integer(c)), PSQLState.COMMUNICATION_ERROR);
}
org.postgresql.coreVisibleBufferedInputStreamread

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

  • Making http post requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • String (java.lang)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top plugins for Android Studio
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