Class SerializationUtils

  • Direct Known Subclasses:
    TDBProtocol

    public class SerializationUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void readHugeString​(java.io.DataInputStream in, java.lang.StringBuilder out)  
      static deltix.qsrv.hf.pub.InstrumentIdentity[] readInstrumentIdentities​(java.io.DataInputStream in)  
      static deltix.qsrv.hf.pub.ConstantInstrumentKey readInstrumentIdentity​(java.io.DataInput in)  
      static deltix.qsrv.hf.pub.InstrumentType readInstrumentType​(java.io.DataInput in)  
      static deltix.qsrv.hf.pub.InstrumentType[] readInstrumentTypes​(java.io.DataInputStream in)  
      static java.lang.Boolean readNullableBoolean​(java.io.DataInputStream in)  
      static java.lang.Integer readNullableInt​(java.io.DataInputStream in)  
      static java.lang.String readNullableString​(java.io.DataInputStream in)  
      static java.lang.String readUTFString​(java.io.DataInput in)  
      static void writeHugeString​(java.io.DataOutputStream out, java.lang.CharSequence s)  
      static void writeInstrumentIdentities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids, int offset, int length, java.io.DataOutputStream out)  
      static void writeInstrumentIdentities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids, java.io.DataOutputStream out)  
      static void writeInstrumentIdentities​(java.util.Collection<deltix.qsrv.hf.pub.InstrumentIdentity> ids, java.io.DataOutputStream out)  
      static void writeInstrumentIdentity​(deltix.qsrv.hf.pub.InstrumentIdentity id, java.io.DataOutput out)  
      static void writeInstrumentType​(deltix.qsrv.hf.pub.InstrumentType type, java.io.DataOutput out)  
      static void writeInstrumentTypes​(deltix.qsrv.hf.pub.InstrumentType[] types, java.io.DataOutputStream out)  
      static void writeNullableBoolean​(java.lang.Boolean value, java.io.DataOutputStream out)  
      static void writeNullableInt​(java.lang.Integer value, java.io.DataOutputStream out)  
      static void writeNullableString​(java.lang.String s, java.io.DataOutputStream out)  
      static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.lang.CharSequence[] symbols, int offset, int length, java.io.DataOutputStream out)  
      static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.lang.CharSequence[] symbols, java.io.DataOutputStream out)  
      static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.util.Collection<java.lang.CharSequence> symbols, java.io.DataOutputStream out)  
      static void writeUTFString​(java.io.DataOutput out, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SerializationUtils

        public SerializationUtils()
    • Method Detail

      • writeNullableString

        public static void writeNullableString​(java.lang.String s,
                                               java.io.DataOutputStream out)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullableString

        public static java.lang.String readNullableString​(java.io.DataInputStream in)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNullableInt

        public static void writeNullableInt​(java.lang.Integer value,
                                            java.io.DataOutputStream out)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullableInt

        public static java.lang.Integer readNullableInt​(java.io.DataInputStream in)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeNullableBoolean

        public static void writeNullableBoolean​(java.lang.Boolean value,
                                                java.io.DataOutputStream out)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullableBoolean

        public static java.lang.Boolean readNullableBoolean​(java.io.DataInputStream in)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • writeHugeString

        public static void writeHugeString​(java.io.DataOutputStream out,
                                           java.lang.CharSequence s)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeUTFString

        public static void writeUTFString​(java.io.DataOutput out,
                                          java.lang.String value)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readUTFString

        public static java.lang.String readUTFString​(java.io.DataInput in)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readHugeString

        public static void readHugeString​(java.io.DataInputStream in,
                                          java.lang.StringBuilder out)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentType

        public static void writeInstrumentType​(deltix.qsrv.hf.pub.InstrumentType type,
                                               java.io.DataOutput out)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • readInstrumentType

        public static deltix.qsrv.hf.pub.InstrumentType readInstrumentType​(java.io.DataInput in)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentTypes

        public static void writeInstrumentTypes​(deltix.qsrv.hf.pub.InstrumentType[] types,
                                                java.io.DataOutputStream out)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • readInstrumentTypes

        public static deltix.qsrv.hf.pub.InstrumentType[] readInstrumentTypes​(java.io.DataInputStream in)
                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentIdentity

        public static void writeInstrumentIdentity​(deltix.qsrv.hf.pub.InstrumentIdentity id,
                                                   java.io.DataOutput out)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readInstrumentIdentity

        public static deltix.qsrv.hf.pub.ConstantInstrumentKey readInstrumentIdentity​(java.io.DataInput in)
                                                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentIdentities

        public static void writeInstrumentIdentities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids,
                                                     java.io.DataOutputStream out)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentIdentities

        public static void writeInstrumentIdentities​(deltix.qsrv.hf.pub.InstrumentIdentity[] ids,
                                                     int offset,
                                                     int length,
                                                     java.io.DataOutputStream out)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeInstrumentIdentities

        public static void writeInstrumentIdentities​(java.util.Collection<deltix.qsrv.hf.pub.InstrumentIdentity> ids,
                                                     java.io.DataOutputStream out)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • writeSymbols

        public static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.lang.CharSequence[] symbols,
                                                                           java.io.DataOutputStream out)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeSymbols

        public static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.lang.CharSequence[] symbols,
                                                                           int offset,
                                                                           int length,
                                                                           java.io.DataOutputStream out)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • writeSymbols

        public static deltix.qsrv.hf.pub.InstrumentIdentity[] writeSymbols​(java.util.Collection<java.lang.CharSequence> symbols,
                                                                           java.io.DataOutputStream out)
                                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • readInstrumentIdentities

        public static deltix.qsrv.hf.pub.InstrumentIdentity[] readInstrumentIdentities​(java.io.DataInputStream in)
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException