热门

最新

红包

立Flag

投票

同城

我的

发布
m0_56802191
m0_56802191
3 年前
truem0_56802191

ENVI掩膜

用ENVI建立掩膜消除图像背景

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
使用read()方法取一个字节数组的数据package Reading;/* 一次抛出一个字节数组 */import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;public class er { public static void main(String[] args) throws IOException { FileInputStream fis = null; try { fis = new FileInputStream("fors.txt"); } catch (FileNotFoundException e) { e.printStackTrace(); } //定义一个字节数组 byte[] bys = new byte[1024]; int len; while((len = fis.read(bys)) != -1){ System.out.print(new String(bys,0,len)); } }}
立即登录