Package io.protostuff

Enum WriteSink

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WriteSink>

    public enum WriteSink
    extends java.lang.Enum<WriteSink>
    The flexible output for outputs that use WriteSession.
    • Enum Constant Detail

      • BUFFERED

        public static final WriteSink BUFFERED
      • STREAMED

        public static final WriteSink STREAMED
    • Constructor Detail

      • WriteSink

        private WriteSink()
    • Method Detail

      • values

        public static WriteSink[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WriteSink c : WriteSink.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WriteSink valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • writeByteArrayB64

        public abstract LinkedBuffer writeByteArrayB64​(byte[] value,
                                                       int offset,
                                                       int length,
                                                       WriteSession session,
                                                       LinkedBuffer lb)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • writeByteArray

        public abstract LinkedBuffer writeByteArray​(byte[] value,
                                                    int offset,
                                                    int length,
                                                    WriteSession session,
                                                    LinkedBuffer lb)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrFromFloat

        public abstract LinkedBuffer writeStrFromFloat​(float value,
                                                       WriteSession session,
                                                       LinkedBuffer lb)
                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrFromDouble

        public abstract LinkedBuffer writeStrFromDouble​(double value,
                                                        WriteSession session,
                                                        LinkedBuffer lb)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrAscii

        public abstract LinkedBuffer writeStrAscii​(java.lang.CharSequence value,
                                                   WriteSession session,
                                                   LinkedBuffer lb)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrUTF8

        public abstract LinkedBuffer writeStrUTF8​(java.lang.CharSequence value,
                                                  WriteSession session,
                                                  LinkedBuffer lb)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrUTF8VarDelimited

        public abstract LinkedBuffer writeStrUTF8VarDelimited​(java.lang.CharSequence value,
                                                              WriteSession session,
                                                              LinkedBuffer lb)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • writeStrUTF8FixedDelimited

        public abstract LinkedBuffer writeStrUTF8FixedDelimited​(java.lang.CharSequence value,
                                                                boolean littleEndian,
                                                                WriteSession session,
                                                                LinkedBuffer lb)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException