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