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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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 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

/**
 * 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

/**
 * 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-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 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

/**
 * Write the booleans that this object uses to a BooleanStream
 */
public int tightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) throws IOException {
  ConnectionId info = (ConnectionId)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalString1(info.getValue(), bs);
  return rc + 0;
}
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-osgi

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-all

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-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 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

/**
 * 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);
  JournalTrace info = (JournalTrace)o;
  tightMarshalString2(info.getMessage(), dataOut, 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 {
  NetworkBridgeFilter info = (NetworkBridgeFilter)o;
  int rc = super.tightMarshal1(wireFormat, o, bs);
  rc += tightMarshalCachedObject1(wireFormat, (DataStructure)info.getNetworkBrokerId(), bs);
  return rc + 4;
}
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);
  BrokerId info = (BrokerId)o;
  info.setValue(looseUnmarshalString(dataIn));
}
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);
    }
  }
}
org.apache.activemq.openwire.v3BaseDataStreamMarshaller

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

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • findViewById (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now