Class Protocol


  • public class Protocol
    extends java.lang.Object
    • Constructor Detail

      • Protocol

        public Protocol()
    • Method Detail

      • isDeflatedMessageStream

        public static boolean isDeflatedMessageStream​(java.io.File f)
      • getVersion

        public static byte getVersion​(java.io.File f)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTypes

        public static void writeTypes​(java.io.DataOutputStream out,
                                      RecordClassDescriptor[] rcd)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getDefaultTypeLoader

        public static TypeLoader getDefaultTypeLoader()
      • openMarketMessagesReader

        public static deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage> openMarketMessagesReader​(java.io.File f)
                                                                                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • openRawReader

        public static deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage> openRawReader​(java.io.File f)
                                                                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • openReader

        public static deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage> openReader​(java.io.File f,
                                                                                                                  TypeLoader loader)
                                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • openReader

        public static deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage> openReader​(java.io.File f,
                                                                                                                  int bufferSize,
                                                                                                                  TypeLoader loader)
                                                                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • createReader

        public static deltix.data.stream.ConsumableMessageSource<deltix.qsrv.hf.pub.InstrumentMessage> createReader​(java.io.File f,
                                                                                                                    RecordClassDescriptor[] types)
                                                                                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • readHeader

        public static MessageFileHeader readHeader​(java.io.File file)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readHeader

        public static MessageFileHeader readHeader​(java.io.InputStream inputStream)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • getStartTime

        public static long getStartTime​(java.io.File file)
                                 throws java.io.IOException
        Parameters:
        file - file
        Returns:
        timestamp of the first message stored in the file with given fullFileName. Used by QuantOfficeBlotter
        Throws:
        java.io.IOException - if the any IO error occurs