package cars;
import java.io.*;
public class OrderHelp {
String table;
String fla;
File files;
String title;
String names;
int size;
int height1;
int height2;
public OrderHelp() {
}
public void setfile(String path,String name){
try{
files=new File(path,name);
size=(int)files.length();
FileInputStream filein=new FileInputStream(files);
byte[] buffer=new byte[size];
filein.read(buffer);
fla=new String(buffer);
}
catch(Exception e){
e.printStackTrace();
}
}
public void setname(String name,String name2){
title=name;
names=name2;
}
public void setsize(int ht,int ht2){
height1=ht;
height2=ht2;
}
public String gettable(){
try{
table="";
table=table+"
";
table=table+"";
table=table+"| "+title+" -->> "+names+" | ";
table=table+"
";
table=table+"";
table=table+"| ";
table=table+" "+names+" | ";
table=table+" | | ";
table=table+fla+" | |
";
return table;
}
catch(Exception e){
e.printStackTrace();
}
return null;
}
}