CosNull.java 1.04 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.internal.io.stream.OutputByteStream
 */
package com.adobe.internal.pdftoolkit.core.cos;

import com.adobe.internal.io.stream.OutputByteStream;
import com.adobe.internal.pdftoolkit.core.cos.CosDocument;
import com.adobe.internal.pdftoolkit.core.cos.CosObject;
import com.adobe.internal.pdftoolkit.core.cos.CosObjectInfo;
import com.adobe.internal.pdftoolkit.core.cos.CosScalar;
import java.io.IOException;

public class CosNull
extends CosScalar {
    private static final byte[] NULL = new byte[]{110, 117, 108, 108};

    CosNull(CosDocument doc) {
        super(doc, null);
    }

    public int getType() {
        return 0;
    }

    void writeOut(OutputByteStream outStream, boolean inString, boolean inDebugMode) throws IOException {
        outStream.write(NULL);
    }

    public Object getValue() {
        return null;
    }

    public boolean equals(CosObject value) {
        return value instanceof CosNull && value.getDocument() == this.getDocument();
    }
}