?? read.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 + -