Tabnine Logo
DataInputInputStream.readFully
Code IndexAdd Tabnine to your IDE (free)

How to use
readFully
method
in
org.apache.solr.common.util.DataInputInputStream

Best Java code snippets using org.apache.solr.common.util.DataInputInputStream.readFully (Showing top 4 results out of 315)

origin: org.apache.solr/solr-solrj

public byte[] readByteArray(DataInputInputStream dis) throws IOException {
 byte[] arr = new byte[readVInt(dis)];
 dis.readFully(arr);
 return arr;
}
//use this to ignore the writable interface because , child docs will ignore the fl flag
origin: com.hynnet/solr-solrj

public byte[] readByteArray(DataInputInputStream dis) throws IOException {
 byte[] arr = new byte[readVInt(dis)];
 dis.readFully(arr);
 return arr;
}
//use this to ignore the writable interface because , child docs will ignore the fl flag
origin: com.hynnet/solr-solrj

public String readStr(DataInputInputStream dis, StringCache stringCache) throws IOException {
 int sz = readSize(dis);
 if (bytes == null || bytes.length < sz) bytes = new byte[sz];
 dis.readFully(bytes, 0, sz);
 if (stringCache != null) {
  return stringCache.get(bytesRef.reset(bytes, 0, sz));
 } else {
  arr.reset();
  ByteUtils.UTF8toUTF16(bytes, 0, sz, arr);
  return arr.toString();
 }
}
origin: org.apache.solr/solr-solrj

public String readStr(DataInputInputStream dis, StringCache stringCache) throws IOException {
 int sz = readSize(dis);
 if (bytes == null || bytes.length < sz) bytes = new byte[sz];
 dis.readFully(bytes, 0, sz);
 if (stringCache != null) {
  return stringCache.get(bytesRef.reset(bytes, 0, sz));
 } else {
  arr.reset();
  ByteUtils.UTF8toUTF16(bytes, 0, sz, arr);
  return arr.toString();
 }
}
org.apache.solr.common.utilDataInputInputStreamreadFully

Popular methods of DataInputInputStream

  • readByte
  • readDouble
  • readFloat
  • readInt
  • readLong
  • readShort

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JComboBox (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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