Java 类com.badlogic.gdx.utils.compression.ICodeProgress 实例源码

项目:libgdxcn    文件:Encoder.java   
public void Code (java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize,
    ICodeProgress progress) throws IOException {
    _needReleaseMFStream = false;
    try {
        SetStreams(inStream, outStream, inSize, outSize);
        while (true) {

            CodeOneBlock(processedInSize, processedOutSize, finished);
            if (finished[0]) return;
            if (progress != null) {
                progress.SetProgress(processedInSize[0], processedOutSize[0]);
            }
        }
    } finally {
        ReleaseStreams();
    }
}
项目:ModularArmour    文件:Encoder.java   
public void Code(java.io.InputStream inStream, java.io.OutputStream outStream, long inSize, long outSize,
        ICodeProgress progress) throws IOException {
    _needReleaseMFStream = false;
    try {
        SetStreams(inStream, outStream, inSize, outSize);
        while (true) {

            CodeOneBlock(processedInSize, processedOutSize, finished);
            if (finished[0])
                return;
            if (progress != null) {
                progress.SetProgress(processedInSize[0], processedOutSize[0]);
            }
        }
    } finally {
        ReleaseStreams();
    }
}
项目:ingress-indonesia-dev    文件:Encoder.java   
public void Code(InputStream paramInputStream, OutputStream paramOutputStream, long paramLong1, long paramLong2, ICodeProgress paramICodeProgress)
{
  this._needReleaseMFStream = false;
  try
  {
    SetStreams(paramInputStream, paramOutputStream, paramLong1, paramLong2);
    while (true)
    {
      CodeOneBlock(this.processedInSize, this.processedOutSize, this.finished);
      int i = this.finished[0];
      if (i != 0)
        return;
      if (paramICodeProgress != null)
        paramICodeProgress.SetProgress(this.processedInSize[0], this.processedOutSize[0]);
    }
  }
  finally
  {
    ReleaseStreams();
  }
}