File: ASN1Null.java

package info (click to toggle)
libitext1-java 1.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 7,636 kB
  • sloc: java: 86,865; xml: 396; makefile: 15
file content (33 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.lowagie.bc.asn1;

import java.io.IOException;

/**
 * A NULL object.
 */
public abstract class ASN1Null
    extends DERObject
{
    public ASN1Null()
    {
    }

    public int hashCode()
    {
        return 0;
    }

	public boolean equals(
		Object o)
	{
        if ((o == null) || !(o instanceof ASN1Null))
        {
            return false;
        }
        
		return true;
	}

    abstract void encode(DEROutputStream out)
        throws IOException;
}