package com.song.test;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
public class Test1 {
public static void main(String[] args) throws IOException {
//Demo1();
BufferedInputStream bis = new BufferedInputStream(new FileInputStream("新双元.jpg"));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("新新双元.jpg"));
int b ;
while((b= bis.read()) != -1){
bos.write(b^666);
}
bis.close();
bos.close();
}
|
|