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

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

Best Java code snippets using org.apache.activemq.openwire.v4.BaseDataStreamMarshaller (Showing top 20 results out of 315)

origin: apache/activemq

protected Throwable looseUnmarsalThrowable(OpenWireFormat wireFormat, DataInput dataIn)
  throws IOException {
  if (dataIn.readBoolean()) {
    String clazz = looseUnmarshalString(dataIn);
    String message = looseUnmarshalString(dataIn);
    Throwable o = createThrowable(clazz, message);
    if (wireFormat.isStackTraceEnabled()) {
      if (STACK_TRACE_ELEMENT_CONSTRUCTOR != null) {
          try {
            ss[i] = (StackTraceElement)STACK_TRACE_ELEMENT_CONSTRUCTOR
              .newInstance(new Object[] {looseUnmarshalString(dataIn),
                            looseUnmarshalString(dataIn),
                            looseUnmarshalString(dataIn),
                            Integer.valueOf(dataIn.readInt())});
          } catch (IOException e) {
        short size = dataIn.readShort();
        for (int i = 0; i < size; i++) {
          looseUnmarshalString(dataIn);
          looseUnmarshalString(dataIn);
          looseUnmarshalString(dataIn);
          dataIn.readInt();
      o.initCause(looseUnmarsalThrowable(wireFormat, dataIn));
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    super.looseMarshal(wireFormat, o, dataOut);

  }
}
origin: apache/activemq

protected void looseMarshalObjectArray(OpenWireFormat wireFormat, DataStructure[] objects,
                    DataOutput dataOut) throws IOException {
  dataOut.writeBoolean(objects != null);
  if (objects != null) {
    dataOut.writeShort(objects.length);
    for (int i = 0; i < objects.length; i++) {
      looseMarshalNestedObject(wireFormat, objects[i], dataOut);
    }
  }
}
origin: apache/activemq

protected void looseMarshalThrowable(OpenWireFormat wireFormat, Throwable o, DataOutput dataOut)
  throws IOException {
  dataOut.writeBoolean(o != null);
  if (o != null) {
    looseMarshalString(o.getClass().getName(), dataOut);
    looseMarshalString(o.getMessage(), dataOut);
    if (wireFormat.isStackTraceEnabled()) {
      StackTraceElement[] stackTrace = o.getStackTrace();
      dataOut.writeShort(stackTrace.length);
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        looseMarshalString(element.getClassName(), dataOut);
        looseMarshalString(element.getMethodName(), dataOut);
        looseMarshalString(element.getFileName(), dataOut);
        dataOut.writeInt(element.getLineNumber());
      }
      looseMarshalThrowable(wireFormat, o.getCause(), dataOut);
    }
  }
}
origin: apache/activemq

protected Throwable tightUnmarsalThrowable(OpenWireFormat wireFormat, DataInput dataIn, BooleanStream bs)
  throws IOException {
  if (bs.readBoolean()) {
    String clazz = tightUnmarshalString(dataIn, bs);
    String message = tightUnmarshalString(dataIn, bs);
    Throwable o = createThrowable(clazz, message);
    if (wireFormat.isStackTraceEnabled()) {
      if (STACK_TRACE_ELEMENT_CONSTRUCTOR != null) {
          try {
            ss[i] = (StackTraceElement)STACK_TRACE_ELEMENT_CONSTRUCTOR
              .newInstance(new Object[] {tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            Integer.valueOf(dataIn.readInt())});
          } catch (IOException e) {
        short size = dataIn.readShort();
        for (int i = 0; i < size; i++) {
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          dataIn.readInt();
      o.initCause(tightUnmarsalThrowable(wireFormat, dataIn, bs));
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  int rc = super.tightMarshal1(wireFormat, o, bs);
  return rc + 0;
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
}
origin: org.apache.activemq/activemq-all

protected Throwable tightUnmarsalThrowable(OpenWireFormat wireFormat, DataInput dataIn, BooleanStream bs)
  throws IOException {
  if (bs.readBoolean()) {
    String clazz = tightUnmarshalString(dataIn, bs);
    String message = tightUnmarshalString(dataIn, bs);
    Throwable o = createThrowable(clazz, message);
    if (wireFormat.isStackTraceEnabled()) {
      if (STACK_TRACE_ELEMENT_CONSTRUCTOR != null) {
          try {
            ss[i] = (StackTraceElement)STACK_TRACE_ELEMENT_CONSTRUCTOR
              .newInstance(new Object[] {tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            Integer.valueOf(dataIn.readInt())});
          } catch (IOException e) {
        short size = dataIn.readShort();
        for (int i = 0; i < size; i++) {
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          dataIn.readInt();
      o.initCause(tightUnmarsalThrowable(wireFormat, dataIn, bs));
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  BaseCommand info = (BaseCommand)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  bs.writeBoolean(info.isResponseRequired());
  return rc + 4;
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  BaseCommand info = (BaseCommand)o;
  dataOut.writeInt(info.getCommandId());
  bs.readBoolean();
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  BaseCommand info = (BaseCommand)o;
  info.setCommandId(dataIn.readInt());
  info.setResponseRequired(dataIn.readBoolean());
}
origin: org.apache.activemq/activemq-all

protected void looseMarshalThrowable(OpenWireFormat wireFormat, Throwable o, DataOutput dataOut)
  throws IOException {
  dataOut.writeBoolean(o != null);
  if (o != null) {
    looseMarshalString(o.getClass().getName(), dataOut);
    looseMarshalString(o.getMessage(), dataOut);
    if (wireFormat.isStackTraceEnabled()) {
      StackTraceElement[] stackTrace = o.getStackTrace();
      dataOut.writeShort(stackTrace.length);
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        looseMarshalString(element.getClassName(), dataOut);
        looseMarshalString(element.getMethodName(), dataOut);
        looseMarshalString(element.getFileName(), dataOut);
        dataOut.writeInt(element.getLineNumber());
      }
      looseMarshalThrowable(wireFormat, o.getCause(), dataOut);
    }
  }
}
origin: org.apache.activemq/activemq-osgi

protected Throwable looseUnmarsalThrowable(OpenWireFormat wireFormat, DataInput dataIn)
  throws IOException {
  if (dataIn.readBoolean()) {
    String clazz = looseUnmarshalString(dataIn);
    String message = looseUnmarshalString(dataIn);
    Throwable o = createThrowable(clazz, message);
    if (wireFormat.isStackTraceEnabled()) {
      if (STACK_TRACE_ELEMENT_CONSTRUCTOR != null) {
          try {
            ss[i] = (StackTraceElement)STACK_TRACE_ELEMENT_CONSTRUCTOR
              .newInstance(new Object[] {looseUnmarshalString(dataIn),
                            looseUnmarshalString(dataIn),
                            looseUnmarshalString(dataIn),
                            Integer.valueOf(dataIn.readInt())});
          } catch (IOException e) {
        short size = dataIn.readShort();
        for (int i = 0; i < size; i++) {
          looseUnmarshalString(dataIn);
          looseUnmarshalString(dataIn);
          looseUnmarshalString(dataIn);
          dataIn.readInt();
      o.initCause(looseUnmarsalThrowable(wireFormat, dataIn));
origin: org.apache.activemq/activemq-osgi

protected Throwable tightUnmarsalThrowable(OpenWireFormat wireFormat, DataInput dataIn, BooleanStream bs)
  throws IOException {
  if (bs.readBoolean()) {
    String clazz = tightUnmarshalString(dataIn, bs);
    String message = tightUnmarshalString(dataIn, bs);
    Throwable o = createThrowable(clazz, message);
    if (wireFormat.isStackTraceEnabled()) {
      if (STACK_TRACE_ELEMENT_CONSTRUCTOR != null) {
          try {
            ss[i] = (StackTraceElement)STACK_TRACE_ELEMENT_CONSTRUCTOR
              .newInstance(new Object[] {tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            tightUnmarshalString(dataIn, bs),
                            Integer.valueOf(dataIn.readInt())});
          } catch (IOException e) {
        short size = dataIn.readShort();
        for (int i = 0; i < size; i++) {
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          tightUnmarshalString(dataIn, bs);
          dataIn.readInt();
      o.initCause(tightUnmarsalThrowable(wireFormat, dataIn, bs));
origin: apache/activemq

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  JournalTrace info = (JournalTrace)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getMessage(), bs);
  return rc + 0;
}
origin: apache/activemq

/**
 * Write a object instance to data output stream
 *
 * @param o the instance to be marshaled
 * @param dataOut the output stream
 * @throws IOException thrown if an error occurs
 */
public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutput dataOut, BooleanStream bs) throws IOException {
  super.tightMarshal2(wireFormat, o, dataOut, bs);
  ActiveMQDestination info = (ActiveMQDestination)o;
  tightMarshalString2(info.getPhysicalName(), dataOut, bs);
}
origin: apache/activemq

  /**
   * Write the booleans that this object uses to a BooleanStream
   */
  public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {

    BaseCommand info = (BaseCommand)o;

    super.looseMarshal(wireFormat, o, dataOut);
    dataOut.writeInt(info.getCommandId());
    dataOut.writeBoolean(info.isResponseRequired());

  }
}
origin: apache/activemq

/**
 * Un-marshal an object instance from the data input stream
 *
 * @param o the object to un-marshal
 * @param dataIn the data input stream to build the object from
 * @throws IOException
 */
public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn) throws IOException {
  super.looseUnmarshal(wireFormat, o, dataIn);
  JournalTrace info = (JournalTrace)o;
  info.setMessage(looseUnmarshalString(dataIn));
}
origin: pierre/meteo

protected void looseMarshalThrowable(OpenWireFormat wireFormat, Throwable o, DataOutput dataOut)
  throws IOException {
  dataOut.writeBoolean(o != null);
  if (o != null) {
    looseMarshalString(o.getClass().getName(), dataOut);
    looseMarshalString(o.getMessage(), dataOut);
    if (wireFormat.isStackTraceEnabled()) {
      StackTraceElement[] stackTrace = o.getStackTrace();
      dataOut.writeShort(stackTrace.length);
      for (int i = 0; i < stackTrace.length; i++) {
        StackTraceElement element = stackTrace[i];
        looseMarshalString(element.getClassName(), dataOut);
        looseMarshalString(element.getMethodName(), dataOut);
        looseMarshalString(element.getFileName(), dataOut);
        dataOut.writeInt(element.getLineNumber());
      }
      looseMarshalThrowable(wireFormat, o.getCause(), dataOut);
    }
  }
}
org.apache.activemq.openwire.v4BaseDataStreamMarshaller

Most used methods

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

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • JCheckBox (javax.swing)
  • JOptionPane (javax.swing)
  • 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