import framework.io.CustomOutputStream;
public class ComponentExporter {
public static void exportComponent(Component c, File file) throws IOException{
if(c != null){
final CustomOutputStream out = new CustomOutputStream(new BufferedOutputStream(new FileOutputStream(file)));
c.writeToStream(out);
out.flush();
out.close();
}
}