|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
java.util.zip.CheckedOutputStream
public class CheckedOutputStream
기입해지는 데이터의 체크 섬도 보관 유지하는 출력 스트림입니다. 체크 섬은, 이후에, 출력 데이터의 무결성을 검증하기 위해서 사용할 수 있습니다.
Checksum | 필드의 개요 |
|---|
| 클래스 java.io. FilterOutputStream 로부터 상속된 필드 |
|---|
out |
| 생성자 의 개요 | |
|---|---|
CheckedOutputStream (OutputStream out,
Checksum cksum)
지정된 Checksum 를 사용해 출력 스트림을 작성합니다. |
|
| 메소드의 개요 | |
|---|---|
Checksum |
getChecksum ()
이 출력 스트림의 Checksum 를 돌려줍니다. |
void |
write (byte[] b,
int off,
int len)
바이트 배열을 기입합니다. |
void |
write (int b)
바이트를 기입합니다. |
| 클래스 java.io. FilterOutputStream 로부터 상속된 메소드 |
|---|
close , flush , write |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public CheckedOutputStream(OutputStream out,
Checksum cksum)
out - 출력 스트림cksum - Checksum| 메소드의 상세 |
|---|
public void write(int b)
throws IOException
FilterOutputStream 내의 write b - 기입해지는 바이트
IOException - 입출력 에러가 발생했을 경우
public void write(byte[] b,
int off,
int len)
throws IOException
FilterOutputStream 내의 write b - 기입해지는 데이터off - 데이터의 개시 오프셋(offset)len - 기입해지는 바이트수
IOException - 입출력 에러가 발생했을 경우FilterOutputStream.write(int) public Checksum getChecksum()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.