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; }
public void derEncode(DerOutputStream out) throws IOException { DerUtil.putUTF8String(out, name); }
public void derDecode(DerInputStream in) throws IOException { name = DerUtil.getString(in); }