⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read.java

📁 这是用java编写的加密与解密程序
💻 JAVA
字号:

import java.io.*;
//import Point.java;



public class Read 
{
	
	public Item[] item =  new Item[1000];
	public int itemNo = 0;
	
	public String rPath;
	public int section = 0;
	public int endsec = 0;
	
	public Read(String path)
	{
		try
		{
			DataInputStream in = new DataInputStream(new BufferedInputStream((new FileInputStream(path))));
			BufferedReader bf = new BufferedReader(new InputStreamReader(in));
		
			FindSection sec = new FindSection(path);
			
			rPath = path;
			section = sec.section;
			endsec = sec.endsec;
			
			String ss = "";
			String s1 = "";
			String s2 = "";
			String s3 = "";
			String s4 = "";
			String s5 = "";
			String s6 = "";
			
			int i = 0;			
			int itemID = 0;
			
			while( i < endsec)
			{
				if(i < section)
				{
					bf.readLine();
					i++;
				}
				else
				{
					ss = bf.readLine();
					i++;
					
					if((ss.equals("AcDbCircle")) || (ss.equals("AcDbLine")))
					{
						ss = bf.readLine();
						s1 = ss;
						ss = bf.readLine();
						s2 = ss;
						ss = bf.readLine();
						s3 = ss;
						ss = bf.readLine();
						s4 = ss;
						ss = bf.readLine();
						s5 = ss;
						ss = bf.readLine();
						s6 = ss;
						
						if(itemID == 1000)
						{
							break;
						}						
						item[itemID] = new Item(s1, s2, s3, s4, s5, s6);						
						itemID++;
						
						i += 6;									
					}
				}
			}			
						
			itemNo = itemID;
			in.close();
			bf.close();
		}
		catch(IOException e)
		{
			System.out.print(e);
		}
	}
	
	
	public static void main(String[] args)
	{
	
	 	new Go("D://a.dxf","D://aa.dxf",  5);
		//new Back("D://aa.dxf","D://aaa.dxf",  5);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -