Codota Logo
LittleEndianDataInputStream.readShort
Code IndexAdd Codota to your IDE (free)

How to use
readShort
method
in
com.google.common.io.LittleEndianDataInputStream

Best Java code snippets using com.google.common.io.LittleEndianDataInputStream.readShort (Showing top 9 results out of 315)

  • Common ways to obtain LittleEndianDataInputStream
private void myMethod () {
LittleEndianDataInputStream l =
  • Codota IconInputStream in;new LittleEndianDataInputStream(in)
  • Smart code suggestions by Codota
}
origin: yandex/clickhouse-jdbc

/**
 * Warning: the result is negative in Java if UInt16 > 0x7fff
 * @return next UInt16 value as a short
 * @throws IOException
 */
public short readUInt16AsShort() throws IOException {
  return in.readShort();
}
origin: ru.yandex.clickhouse/clickhouse-jdbc

/**
 * Warning: the result is negative in Java if UInt16 > 0x7fff
 * @return next UInt16 value as a short
 * @throws IOException
 */
public short readUInt16AsShort() throws IOException {
  return in.readShort();
}
origin: yandex/clickhouse-jdbc

public short readInt16() throws IOException {
  return in.readShort();
}
origin: ru.yandex.clickhouse/clickhouse-jdbc

public short readInt16() throws IOException {
  return in.readShort();
}
origin: facebookarchive/hive-dwrf

@Override
public short readShort()
{
  try {
    return dataInputStream.readShort();
  }
  catch (IOException e) {
    throw new RuntimeIOException(e);
  }
}
origin: com.facebook.hive/hive-dwrf-shims

@Override
public short readShort()
{
  try {
    return dataInputStream.readShort();
  }
  catch (IOException e) {
    throw new RuntimeIOException(e);
  }
}
origin: jorabin/KeePassJava2

  private static byte [] getByteArray(LittleEndianDataInputStream ledis) throws IOException {
    short fieldLength = ledis.readShort();
    byte [] value = new byte[fieldLength];
    ledis.readFully(value);
    return value;
  }
}
origin: jorabin/KeePassJava2

private static int getInt(LittleEndianDataInputStream ledis) throws IOException {
  short fieldLength = ledis.readShort();
  if (fieldLength != 4) {
    throw new IllegalStateException("Int required but length was " + fieldLength);
  }
  return ledis.readInt();
}
origin: jorabin/KeePassJava2

private static long getLong(LittleEndianDataInputStream ledis) throws IOException {
  short fieldLength = ledis.readShort();
  if (fieldLength != 8) {
    throw new IllegalStateException("Long required but length was " + fieldLength);
  }
  return ledis.readLong();
}
com.google.common.ioLittleEndianDataInputStreamreadShort

Javadoc

Reads a short as specified by DataInputStream#readShort(), except using little-endian byte order.

Popular methods of LittleEndianDataInputStream

  • readInt
    Reads an integer as specified by DataInputStream#readInt(), except using little-endian byte order.
  • readLong
    Reads a long as specified by DataInputStream#readLong(), except using little-endian byte order.
  • <init>
    Creates a LittleEndianDataInputStream that wraps the given stream.
  • readUnsignedByte
  • readUnsignedShort
    Reads an unsigned short as specified by DataInputStream#readUnsignedShort(), except using little-end
  • readAndCheckByte
    Reads a byte from the input stream checking that the end of file (EOF) has not been encountered.
  • readByte
  • close
  • readDouble
    Reads a double as specified by DataInputStream#readDouble(), except using little-endian byte order.
  • readFloat
    Reads a float as specified by DataInputStream#readFloat(), except using little-endian byte order.
  • read
  • readFully
  • read,
  • readFully,
  • readBoolean,
  • readUTF,
  • skip,
  • skipBytes

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • orElseThrow (Optional)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
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