Class WriterBase

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WriterBase​(com.io7m.jbssio.api.BSSWriterSequentialType inWriter, SMFAttribute inAttribute)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void serializeValueFloat1​(double x)
      Must be overridden for writers that accept values of this type.
      void serializeValueFloat2​(double x, double y)
      Must be overridden for writers that accept values of this type.
      void serializeValueFloat3​(double x, double y, double z)
      Must be overridden for writers that accept values of this type.
      void serializeValueFloat4​(double x, double y, double z, double w)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerSigned1​(long x)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerSigned2​(long x, long y)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerSigned3​(long x, long y, long z)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerSigned4​(long x, long y, long z, long w)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerUnsigned1​(long x)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerUnsigned2​(long x, long y)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerUnsigned3​(long x, long y, long z)
      Must be overridden for writers that accept values of this type.
      void serializeValueIntegerUnsigned4​(long x, long y, long z, long w)
      Must be overridden for writers that accept values of this type.
      protected com.io7m.jbssio.api.BSSWriterSequentialType writer()  
      • Methods inherited from class java.lang.Object

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

      • WriterBase

        protected WriterBase​(com.io7m.jbssio.api.BSSWriterSequentialType inWriter,
                             SMFAttribute inAttribute)
    • Method Detail

      • close

        public final void close()
                         throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException
      • writer

        protected final com.io7m.jbssio.api.BSSWriterSequentialType writer()
      • serializeValueFloat4

        public void serializeValueFloat4​(double x,
                                         double y,
                                         double z,
                                         double w)
                                  throws java.io.IOException,
                                         java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueFloat4 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        w - The w value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueFloat3

        public void serializeValueFloat3​(double x,
                                         double y,
                                         double z)
                                  throws java.io.IOException,
                                         java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueFloat3 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueFloat2

        public void serializeValueFloat2​(double x,
                                         double y)
                                  throws java.io.IOException,
                                         java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueFloat2 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueFloat1

        public void serializeValueFloat1​(double x)
                                  throws java.io.IOException,
                                         java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueFloat1 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerSigned4

        public void serializeValueIntegerSigned4​(long x,
                                                 long y,
                                                 long z,
                                                 long w)
                                          throws java.io.IOException,
                                                 java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerSigned4 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        w - The w value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerSigned3

        public void serializeValueIntegerSigned3​(long x,
                                                 long y,
                                                 long z)
                                          throws java.io.IOException,
                                                 java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerSigned3 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerSigned2

        public void serializeValueIntegerSigned2​(long x,
                                                 long y)
                                          throws java.io.IOException,
                                                 java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerSigned2 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerSigned1

        public void serializeValueIntegerSigned1​(long x)
                                          throws java.io.IOException,
                                                 java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerSigned1 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerUnsigned4

        public void serializeValueIntegerUnsigned4​(long x,
                                                   long y,
                                                   long z,
                                                   long w)
                                            throws java.io.IOException,
                                                   java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerUnsigned4 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        w - The w value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerUnsigned3

        public void serializeValueIntegerUnsigned3​(long x,
                                                   long y,
                                                   long z)
                                            throws java.io.IOException,
                                                   java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerUnsigned3 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        z - The z value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerUnsigned2

        public void serializeValueIntegerUnsigned2​(long x,
                                                   long y)
                                            throws java.io.IOException,
                                                   java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerUnsigned2 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        y - The y value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors
      • serializeValueIntegerUnsigned1

        public void serializeValueIntegerUnsigned1​(long x)
                                            throws java.io.IOException,
                                                   java.lang.IllegalArgumentException
        Must be overridden for writers that accept values of this type.
        Specified by:
        serializeValueIntegerUnsigned1 in interface SMFSerializerDataAttributesValuesType
        Parameters:
        x - The x value
        Throws:
        java.io.IOException - On I/O errors
        java.lang.IllegalArgumentException - On other errors