本文整理汇总了Java中skadistats.clarity.source.InputStreamSource类的典型用法代码示例。如果您正苦于以下问题:Java InputStreamSource类的具体用法?Java InputStreamSource怎么用?Java InputStreamSource使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InputStreamSource类属于skadistats.clarity.source包,在下文中一共展示了InputStreamSource类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: Parse
import skadistats.clarity.source.InputStreamSource; //导入依赖的package包/类
public Parse(InputStream input, OutputStream output) throws IOException
{
greevilsGreedVisitor = new GreevilsGreedVisitor(name_to_slot);
trackVisitor = new TrackVisitor();
is = input;
os = output;
isPlayerStartingItemsWritten = new ArrayList<>(Arrays.asList(new Boolean[numPlayers]));
Collections.fill(isPlayerStartingItemsWritten, Boolean.FALSE);
long tStart = System.currentTimeMillis();
new SimpleRunner(new InputStreamSource(is)).runWith(this);
long tMatch = System.currentTimeMillis() - tStart;
System.err.format("total time taken: %s\n", (tMatch) / 1000.0);
}
示例2: infoForStream
import skadistats.clarity.source.InputStreamSource; //导入依赖的package包/类
/**
* Retrieves summary-data from the given input stream
*
* @param stream an {@code InputStream}, containing replay data, positioned at the beginning
* @return the {@code CDemoFileInfo} protobuf message
* @throws IOException if the given stream is invalid
*/
public static Demo.CDemoFileInfo infoForStream(final InputStream stream) throws IOException {
return infoForSource(new InputStreamSource(stream));
}