Package org.axsl.ps

Examples of org.axsl.ps.PsException


        final String numericString = tokens[this.columnNum];
        int index = -1;
        try {
            index = Integer.parseInt(numericString, this.radix);
        } catch (final NumberFormatException e) {
            throw new PsException("Invalid octal string, line " + this.currentLineNumber + ": " + numericString, e);
        }
        if (index > WKConstants.MAX_8_BIT_UNSIGNED_VALUES - 1) {
            index = WKConstants.MAX_8_BIT_UNSIGNED_VALUES - 1;
        }
        if (index < 0) {
View Full Code Here


                    break;
                }
            }
            if (this.codePointIndexes.get(i) == 0
                    && ! glyphName.equals(EncodingVector4a.NOTDEF)) {
                throw new PsException("Glyph name not found: " + glyphName);
            }
        }
    }
View Full Code Here

        this.characterSet.add(Character.MIN_VALUE);
        this.glyphNames.add(StringUtil.EMPTY_STRING);
        final GlyphList gl = GlyphListAGL.getInstance();
        final char theChar = gl.mapGlyphNameToCodePoint(line);
        if (theChar == Character.MAX_VALUE) {
            throw new PsException("Character not found in Adobe Glyph List, line "
                    + this.currentLineNumber + ": " + line);

        }
        this.characterSet.set(arrayIndex, theChar);
        this.glyphNames.set(arrayIndex, line);
View Full Code Here

        this.glyphNames.set(arrayIndex, tokens[0]);
        final char[] charArray = new char[tokens.length - 1];
        for (int i = 1; i < tokens.length; i++) {
            final int parsedValue = Integer.parseInt(tokens[i], WKConstants.MAX_4_BIT_UNSIGNED_VALUES);
            if (parsedValue < 0) {
                throw new PsException("Value out of range, line " + this.currentLineNumber);
            }
            if (parsedValue > WKConstants.MAX_16_BIT_UNSIGNED_VALUES - 1) {
                throw new PsException("Value out of range, line " + this.currentLineNumber);
            }
            charArray[i - 1] = (char) parsedValue;
        }
        this.codePointsForGlyphNames.set(arrayIndex, charArray);
    }
View Full Code Here

TOP

Related Classes of org.axsl.ps.PsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.