Tabnine Logo
BaseDataStreamMarshaller.tightMarshalString1
Code IndexAdd Tabnine to your IDE (free)

How to use
tightMarshalString1
method
in
org.apache.activemq.openwire.v3.BaseDataStreamMarshaller

Best Java code snippets using org.apache.activemq.openwire.v3.BaseDataStreamMarshaller.tightMarshalString1 (Showing top 4 results out of 315)

origin: apache/activemq

protected int tightMarshalThrowable1(OpenWireFormat wireFormat, Throwable o, BooleanStream bs)
  throws IOException {
  if (o == null) {
    bs.writeBoolean(false);
    return 0;
  } else {
    int rc = 0;
    bs.writeBoolean(true);
    rc += tightMarshalString1(o.getClass().getName(), bs);
    rc += tightMarshalString1(o.getMessage(), bs);
    if (wireFormat.isStackTraceEnabled()) {
      rc += 2;
      StackTraceElement[] stackTrace = o.getStackTrace();
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        rc += tightMarshalString1(element.getClassName(), bs);
        rc += tightMarshalString1(element.getMethodName(), bs);
        rc += tightMarshalString1(element.getFileName(), bs);
        rc += 4;
      }
      rc += tightMarshalThrowable1(wireFormat, o.getCause(), bs);
    }
    return rc;
  }
}
origin: org.apache.activemq/activemq-all

protected int tightMarshalThrowable1(OpenWireFormat wireFormat, Throwable o, BooleanStream bs)
  throws IOException {
  if (o == null) {
    bs.writeBoolean(false);
    return 0;
  } else {
    int rc = 0;
    bs.writeBoolean(true);
    rc += tightMarshalString1(o.getClass().getName(), bs);
    rc += tightMarshalString1(o.getMessage(), bs);
    if (wireFormat.isStackTraceEnabled()) {
      rc += 2;
      StackTraceElement[] stackTrace = o.getStackTrace();
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        rc += tightMarshalString1(element.getClassName(), bs);
        rc += tightMarshalString1(element.getMethodName(), bs);
        rc += tightMarshalString1(element.getFileName(), bs);
        rc += 4;
      }
      rc += tightMarshalThrowable1(wireFormat, o.getCause(), bs);
    }
    return rc;
  }
}
origin: org.apache.activemq/activemq-osgi

protected int tightMarshalThrowable1(OpenWireFormat wireFormat, Throwable o, BooleanStream bs)
  throws IOException {
  if (o == null) {
    bs.writeBoolean(false);
    return 0;
  } else {
    int rc = 0;
    bs.writeBoolean(true);
    rc += tightMarshalString1(o.getClass().getName(), bs);
    rc += tightMarshalString1(o.getMessage(), bs);
    if (wireFormat.isStackTraceEnabled()) {
      rc += 2;
      StackTraceElement[] stackTrace = o.getStackTrace();
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        rc += tightMarshalString1(element.getClassName(), bs);
        rc += tightMarshalString1(element.getMethodName(), bs);
        rc += tightMarshalString1(element.getFileName(), bs);
        rc += 4;
      }
      rc += tightMarshalThrowable1(wireFormat, o.getCause(), bs);
    }
    return rc;
  }
}
origin: pierre/meteo

protected int tightMarshalThrowable1(OpenWireFormat wireFormat, Throwable o, BooleanStream bs)
  throws IOException {
  if (o == null) {
    bs.writeBoolean(false);
    return 0;
  } else {
    int rc = 0;
    bs.writeBoolean(true);
    rc += tightMarshalString1(o.getClass().getName(), bs);
    rc += tightMarshalString1(o.getMessage(), bs);
    if (wireFormat.isStackTraceEnabled()) {
      rc += 2;
      StackTraceElement[] stackTrace = o.getStackTrace();
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        rc += tightMarshalString1(element.getClassName(), bs);
        rc += tightMarshalString1(element.getMethodName(), bs);
        rc += tightMarshalString1(element.getFileName(), bs);
        rc += 4;
      }
      rc += tightMarshalThrowable1(wireFormat, o.getCause(), bs);
    }
    return rc;
  }
}
org.apache.activemq.openwire.v3BaseDataStreamMarshallertightMarshalString1

Popular methods of BaseDataStreamMarshaller

  • createThrowable
  • looseMarshal
  • looseMarshalNestedObject
  • looseMarshalString
  • looseMarshalThrowable
  • looseUnmarsalThrowable
  • looseUnmarshal
  • looseUnmarshalString
  • tightMarshal1
  • tightMarshal2
  • tightMarshalNestedObject1
  • tightMarshalNestedObject2
  • tightMarshalNestedObject1,
  • tightMarshalNestedObject2,
  • tightMarshalString2,
  • tightMarshalThrowable1,
  • tightMarshalThrowable2,
  • tightUnmarsalThrowable,
  • tightUnmarshal,
  • tightUnmarshalString,
  • toLong

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getContentResolver (Context)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
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