Package org.sonatype.plexus.rest.xstream

Examples of org.sonatype.plexus.rest.xstream.LookAheadStreamReader


  protected Object instantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext context) {
    BaseDataObject data = null;

    reader = reader.underlyingReader();
    LookAheadStreamReader xppReader = null;

    if (reader instanceof LookAheadStreamReader) {
      xppReader = (LookAheadStreamReader) reader;
    }
    else {
      throw new RuntimeException("reader: " + reader.getClass());
    }

    String type = xppReader.getFieldValue("type");

    if ("type-one".equals(type)) {
      data = new DataObject1();
    }
    else if ("type-two".equals(type)) {
View Full Code Here

TOP

Related Classes of org.sonatype.plexus.rest.xstream.LookAheadStreamReader

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.