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

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

Best Java code snippets using org.apache.activemq.openwire.v4.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-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;
  }
}
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;
  }
}
org.apache.activemq.openwire.v4BaseDataStreamMarshallertightMarshalString1

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

  • Reactive rest calls using spring rest template
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ImageIO (javax.imageio)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Sublime Text 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