Tabnine Logo
UTF32Reader.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.fasterxml.jackson.core.io.UTF32Reader
constructor

Best Java code snippets using com.fasterxml.jackson.core.io.UTF32Reader.<init> (Showing top 11 results out of 315)

origin: redisson/redisson

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: FasterXML/jackson-core

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

public Reader constructReader()
  throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc) { 
  case UTF32_BE:
  case UTF32_LE:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
                _context.getEncoding().isBigEndian());
  case UTF16_BE:
  case UTF16_LE:
  case UTF8: // only in non-common case where we don't want to do direct mapping
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: com.ning.billing/killbill-osgi-bundles-analytics

public Reader constructReader()
  throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc) { 
  case UTF32_BE:
  case UTF32_LE:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
                _context.getEncoding().isBigEndian());
  case UTF16_BE:
  case UTF16_LE:
  case UTF8: // only in non-common case where we don't want to do direct mapping
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: FasterXML/jackson-dataformats-text

case UTF32_BE:
case UTF32_LE:
  return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
              enc.isBigEndian());
origin: com.fasterxml.jackson.core/com.springsource.com.fasterxml.jackson.core.jackson-core

public Reader constructReader()
  throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc) { 
  case UTF32_BE:
  case UTF32_LE:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
                _context.getEncoding().isBigEndian());
  case UTF16_BE:
  case UTF16_LE:
  case UTF8: // only in non-common case where we don't want to do direct mapping
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: com.fasterxml.jackson.dataformat/jackson-dataformat-csv

case UTF32_BE:
case UTF32_LE:
  return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
              enc.isBigEndian());
origin: hstaudacher/osgi-jax-rs-connector

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: com.eclipsesource.jaxrs/jersey-all

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
origin: Nextdoor/bender

@SuppressWarnings("resource")
public Reader constructReader() throws IOException
{
  JsonEncoding enc = _context.getEncoding();
  switch (enc.bits()) {
  case 8: // only in non-common case where we don't want to do direct mapping
  case 16:
    {
      // First: do we have a Stream? If not, need to create one:
      InputStream in = _in;
      if (in == null) {
        in = new ByteArrayInputStream(_inputBuffer, _inputPtr, _inputEnd);
      } else {
        /* Also, if we have any read but unused input (usually true),
         * need to merge that input in:
         */
        if (_inputPtr < _inputEnd) {
          in = new MergedStream(_context, in, _inputBuffer, _inputPtr, _inputEnd);
        }
      }
      return new InputStreamReader(in, enc.getJavaName());
    }
  case 32:
    return new UTF32Reader(_context, _in, _inputBuffer, _inputPtr, _inputEnd,
        _context.getEncoding().isBigEndian());
  }
  throw new RuntimeException("Internal error"); // should never get here
}
com.fasterxml.jackson.core.ioUTF32Reader<init>

Popular methods of UTF32Reader

  • freeBuffers
    This method should be called along with (or instead of) normal close. After calling this method, no
  • loadMore
  • reportBounds
  • reportInvalid
  • reportStrangeStream
  • reportUnexpectedEOF
  • read

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Runner (org.openjdk.jmh.runner)
  • Top Vim 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