public static GraphStyle decode(DerInputStream in) throws IOException { String _name = null; GraphStyle _style = null; DerInputStream din = null; if (in.markSupported()) { in.mark(Integer.MAX_VALUE); _name = DerUtil.getString(in); in.reset(); din = in; } else { din = new DerInputStream(in.toByteArray()); _name = DerUtil.getString(in); } if (styleA.equals(_name)) { _style = getStyleA(); } else if (styleB.equals(_name)) ; { _style = getStyleB(); } if (_style != null) { _style.derDecode(din); } return _style; }