public class CheckedOutputStream extends FilterOutputStream
Checksum 
       out| Constructor and Description | 
|---|
| CheckedOutputStream(OutputStream out, Checksum cksum)
              使用指定的校验和创建输出流。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| Checksum | getChecksum()
              返回此输出流的校验和。 
             | 
| void | write(byte[] b, int off, int len)
              写入一个字节数组。 
             | 
| void | write(int b)
              写一个字节。 
             | 
close, flush, writepublic CheckedOutputStream(OutputStream out, Checksum cksum)
out - 输出流 
           cksum - 校验和 
           public void write(int b)
           throws IOException 
          write在类别 
            FilterOutputStream 
           b - 要写入的字节 
           IOException - 如果发生I / O错误 
           public void write(byte[] b,
                  int off,
                  int len)
           throws IOException 
          write在 
            FilterOutputStream 
           b - 要写入的数据 
           off - 数据的起始偏移量 
           len - 要写入的字节数 
           IOException - 如果发生I / O错误 
           FilterOutputStream.write(int) 
           public Checksum getChecksum()
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.