ExtendedPostScriptToken.java
621 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.internal.pdftoolkit.pdf.graphics.impl;
import com.adobe.internal.pdftoolkit.pdf.graphics.impl.Token;
class ExtendedPostScriptToken
extends Token {
private static final long serialVersionUID = -3213792691837014282L;
private Double value;
ExtendedPostScriptToken(Token token) {
super(token.kind, token.image);
this.value = Double.valueOf(this.image);
}
Double getDoubleValue() {
if (this.kind != 53) {
throw new RuntimeException("Token is not kind of number.");
}
return this.value;
}
}