Package skadistats.clarity.parser

Examples of skadistats.clarity.parser.DemoInputStream


import com.dota2.proto.Demo.CDemoFileInfo;

public class Clarity {

    private static DemoInputStream demoInputStreamForStream(InputStream stream, Profile... profile) throws IOException {
      DemoInputStream d = new DemoInputStream(stream, profile);
      d.bootstrap();
      return d;
    }
View Full Code Here


    public static DemoIndex indexForFile(String fileName, Profile... profile) throws IOException {
        return new DemoIndex(iteratorForFile(fileName, profile));
    }

    public static CDemoFileInfo infoForStream(InputStream stream) throws IOException {
        DemoInputStream s = null;
        try {
            s = demoInputStreamForStream(stream, Profile.FILE_INFO);
            s.skipToFileInfo();
            return (CDemoFileInfo) s.read().getMessage();
        } finally {
            if (s != null) {
                s.close();
            }
        }
    }
View Full Code Here

TOP

Related Classes of skadistats.clarity.parser.DemoInputStream

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.