Class OperaCookieInputStream

    • Field Detail

      • O_MSB_VALUE_1

        public static final int O_MSB_VALUE_1
        MSB Value for 1 Byte ID Tags
        See Also:
        Constant Field Values
      • O_MSB_VALUE_2

        public static final int O_MSB_VALUE_2
        MSB Value for 2 Byte ID Tags
        See Also:
        Constant Field Values
      • O_MSB_VALUE_3

        public static final int O_MSB_VALUE_3
        MSB Value for 3 Byte ID Tags
        See Also:
        Constant Field Values
      • O_MSB_VALUE_L

        public static final long O_MSB_VALUE_L
        MSB Value for 3 Byte ID Tags
        See Also:
        Constant Field Values
      • O_MSB_VALUE_4

        public static final int O_MSB_VALUE_4
        MSB Value for 4 Byte ID Tags
        See Also:
        Constant Field Values
      • O_DOMAIN_START

        public static final int O_DOMAIN_START
        Domain Start 0x0001
        See Also:
        Constant Field Values
      • O_DOMAIN_END_1

        public static final int O_DOMAIN_END_1
        Domain End (0x0004 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_DOMAIN_END_2

        public static final int O_DOMAIN_END_2
        Domain End (0x0004 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_DOMAIN_END_3

        public static final int O_DOMAIN_END_3
        Domain End (0x0004 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_DOMAIN_END_L

        public static final long O_DOMAIN_END_L
        Domain End (0x0004 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_DOMAIN_END_4

        public static final int O_DOMAIN_END_4
        Domain End (0x0004 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_DOMAIN_ACCEPT

        public static final int O_DOMAIN_ACCEPT
        Numeric 1 = Alle von Domain akzeptieren 2 = Alle von Domain ablehnen 3 = Alle von Server akzeptieren 4 = Alle von Server ablehnen
        See Also:
        Constant Field Values
      • O_DOMAIN_PATH_NOT_MATCHING

        public static final int O_DOMAIN_PATH_NOT_MATCHING
        Numeric 1 = Ablehnen 2 = Automatisch akzeptieren
        See Also:
        Constant Field Values
      • O_DOMAIN_THIRD_PARTY_COOKIE

        public static final int O_DOMAIN_THIRD_PARTY_COOKIE
        Numeric 1 = Alle von Domain akzeptieren 2 = Alle von Domain ablehnen 3 = Alle von Server akzeptieren 4 = Alle von Server ablehnen
        See Also:
        Constant Field Values
      • O_PATH_END_1

        public static final int O_PATH_END_1
        Path End (0x0005 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_PATH_END_2

        public static final int O_PATH_END_2
        Path End (0x0005 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_PATH_END_3

        public static final int O_PATH_END_3
        Path End (0x0005 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_PATH_END_4

        public static final int O_PATH_END_4
        Path End (0x0005 | MSB_VALUE)
        See Also:
        Constant Field Values
      • O_COOKIE_COMMENT_URL

        public static final int O_COOKIE_COMMENT_URL
        String
        See Also:
        Constant Field Values
      • O_COOKIE_RECEIVED_DOMAIN

        public static final int O_COOKIE_RECEIVED_DOMAIN
        String
        See Also:
        Constant Field Values
      • O_COOKIE_RECEIVED_PATH

        public static final int O_COOKIE_RECEIVED_PATH
        String
        See Also:
        Constant Field Values
      • O_COOKIE_SECURE_1

        public static final int O_COOKIE_SECURE_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SECURE_2

        public static final int O_COOKIE_SECURE_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SECURE_3

        public static final int O_COOKIE_SECURE_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SECURE_4

        public static final int O_COOKIE_SECURE_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_VERSION

        public static final int O_COOKIE_VERSION
        unsigned numerical
        See Also:
        Constant Field Values
      • O_COOKIE_SERVER_ONLY_1

        public static final int O_COOKIE_SERVER_ONLY_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SERVER_ONLY_2

        public static final int O_COOKIE_SERVER_ONLY_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SERVER_ONLY_3

        public static final int O_COOKIE_SERVER_ONLY_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_SERVER_ONLY_4

        public static final int O_COOKIE_SERVER_ONLY_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PROTECTED_1

        public static final int O_COOKIE_PROTECTED_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PROTECTED_2

        public static final int O_COOKIE_PROTECTED_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PROTECTED_3

        public static final int O_COOKIE_PROTECTED_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PROTECTED_4

        public static final int O_COOKIE_PROTECTED_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PATH_PREFIX_1

        public static final int O_COOKIE_PATH_PREFIX_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PATH_PREFIX_2

        public static final int O_COOKIE_PATH_PREFIX_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PATH_PREFIX_3

        public static final int O_COOKIE_PATH_PREFIX_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PATH_PREFIX_4

        public static final int O_COOKIE_PATH_PREFIX_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PASSWORD_1

        public static final int O_COOKIE_PASSWORD_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PASSWORD_2

        public static final int O_COOKIE_PASSWORD_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PASSWORD_3

        public static final int O_COOKIE_PASSWORD_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_PASSWORD_4

        public static final int O_COOKIE_PASSWORD_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_AUTHENTICATE_1

        public static final int O_COOKIE_AUTHENTICATE_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_AUTHENTICATE_2

        public static final int O_COOKIE_AUTHENTICATE_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_AUTHENTICATE_3

        public static final int O_COOKIE_AUTHENTICATE_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_AUTHENTICATE_4

        public static final int O_COOKIE_AUTHENTICATE_4
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_THIRD_PARTY_1

        public static final int O_COOKIE_THIRD_PARTY_1
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_THIRD_PARTY_2

        public static final int O_COOKIE_THIRD_PARTY_2
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_THIRD_PARTY_3

        public static final int O_COOKIE_THIRD_PARTY_3
        true wenn vorhanden
        See Also:
        Constant Field Values
      • O_COOKIE_THIRD_PARTY_4

        public static final int O_COOKIE_THIRD_PARTY_4
        true wenn vorhanden
        See Also:
        Constant Field Values
    • Constructor Detail

      • OperaCookieInputStream

        public OperaCookieInputStream​(InputStream in)
        Constructor
        Parameters:
        in - InputStream
    • Method Detail

      • read3ByteUnsignedInt

        public long read3ByteUnsignedInt()
                                  throws IOException
        Read unsigned int consisting of 4 bytes
        Returns:
        unsigned int returned as a long, because Java has no unsigned int
        Throws:
        IOException
      • read3ByteUnsignedIntAsInt

        public int read3ByteUnsignedIntAsInt()
                                      throws IOException
        Read unsigned int consisting of 4 bytes as int. Big values of Integer.MAX_VALUE will overflow, so this needs to be handled by the caller.
        Returns:
        unsinged int
        Throws:
        IOException
      • readUnsignedInt

        public long readUnsignedInt()
                             throws IOException
        Read unsigned int consisting of 4 bytes
        Returns:
        unsigned int returned as a long, because Java has no unsigned int
        Throws:
        IOException
      • readUnsignedIntAsInt

        public int readUnsignedIntAsInt()
                                 throws IOException
        Read unsigned int consisting of 4 bytes as int. Big values of Integer.MAX_VALUE will overflow, so this needs to be handled by the caller.
        Returns:
        unsinged int
        Throws:
        IOException
      • readStringValue

        public long readStringValue​(OperaStringValue value,
                                    int recordSize)
                             throws IOException
        Read String
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readTimeValue

        public long readTimeValue​(OperaTimeValue value,
                                  int recordSize)
                           throws IOException
        Read Time
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readInt8Value

        public long readInt8Value​(OperaByteValue value,
                                  int recordSize)
                           throws IOException
        Read Int8
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readInt16Value

        public long readInt16Value​(OperaShortValue value,
                                   int recordSize)
                            throws IOException
        Read Int16
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readInt32Value

        public long readInt32Value​(OperaIntegerValue value,
                                   int recordSize)
                            throws IOException
        Read Int32
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readUInt8Value

        public long readUInt8Value​(OperaIntegerValue value,
                                   int recordSize)
                            throws IOException
        Read Int8
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readUInt16Value

        public long readUInt16Value​(OperaIntegerValue value,
                                    int recordSize)
                             throws IOException
        Read Int16
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readUInt32Value

        public long readUInt32Value​(OperaLongValue value,
                                    int recordSize)
                             throws IOException
        Read Int32
        Parameters:
        value - Value Container
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readTagID

        public int readTagID​(int tagSize)
                      throws IOException
        Read Tag ID
        Parameters:
        tagSize - Tag Size (1 = uint8, 2 = uint16, 3 = uint24, 4 = uint32)
        Returns:
        Tag ID or -1 if EOF
        Throws:
        IOException
      • readPayloadSize

        public long readPayloadSize​(int recordSize)
                             throws IOException
        Read Payload Size
        Parameters:
        recordSize - Record Size (1 = uint8, 2 = uint16, 3 = uint24, 4 = uint32)
        Returns:
        Payload Size
        Throws:
        IOException
      • readDomainComponents

        public List<OperaDomain> readDomainComponents​(int tagSize,
                                                      int recordSize)
                                               throws IOException
        Read domain components
        Parameters:
        tagSize - Tag Size
        recordSize - Record Size
        Returns:
        List of domain components
        Throws:
        IOException
      • readDomainRecord

        public long readDomainRecord​(OperaDomain operaDomain,
                                     OperaDomain parentDomain,
                                     int tagSize,
                                     int recordSize)
                              throws IOException
        Read domain record
        Parameters:
        operaDomain - Domain
        parentDomain - Parent Domain or null if no parent
        tagSize - Tag Size
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readPathRecord

        public long readPathRecord​(OperaPath operaPath,
                                   OperaPath parentPath,
                                   int tagSize,
                                   int recordSize)
                            throws IOException
        Read path record
        Parameters:
        operaPath - Path
        parentPath - Parent Path or null if no parent
        tagSize - Tag Size
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException
      • readCookieRecord

        public long readCookieRecord​(OperaCookie operaCookie,
                                     int tagSize,
                                     int recordSize)
                              throws IOException
        Read cookie record
        Parameters:
        operaCookie - Cookie
        tagSize - Tag Size
        recordSize - Record Size
        Returns:
        Bytes Read
        Throws:
        IOException