Package lev

Examples of lev.LByteChannel


  void parseData(LImport in, Mod srcMod) throws BadRecord, DataFormatException, BadParameter {
      object = in.extract(8);
      version = in.extractInt(2);
            format = in.extractInt(2);
            LByteChannel objectChannel = new LByteChannel(object);
            if(format == 1){
                object_FormID = new FormID();
                object_FormID.parseData(objectChannel, srcMod);
                object_alias = objectChannel.extractInt(2);
                object_unused = objectChannel.extract(2);
            } else if (format == 2) {
                object_unused = objectChannel.extract(2);
                object_alias = objectChannel.extractInt(2);
                object_FormID = new FormID();
                object_FormID.parseData(objectChannel, srcMod);
            } else {
                throw new UnsupportedOperationException("Unsupported VMAD Object format: " + format);
            }
View Full Code Here

TOP

Related Classes of lev.LByteChannel

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.