Package simtools.util

Examples of simtools.util.FileSerializer


    return new File(url.getFile());
  }
 
  public static void main(String[] args){
   
    TestFileSerializer t=new TestFileSerializer(new FileSerializer());
   
    File refFile=getFile(ImageSerializer.class);
   
    ByteArrayOutputStream bo=new ByteArrayOutputStream();
    ObjectOutputStream oo;
View Full Code Here


    /**
     * Universe serialization helper
     */
    public Universe readUniverse(ObjectInputStream in) throws IOException {
        FileSerializer fs = new FileSerializer();
        File res;
        try {
            res = fs.read(in, CurrentPathProvider.currentPathProvider
                    .getCurrentPath());
        } catch (ClassNotFoundException e) {
            throw new IOException(e.getMessage());
        }
        Universe u = getUniverse(res);
View Full Code Here

     * Universe serialization helper
     */
    public void writeUniverse(ObjectOutputStream out, Universe u)
            throws IOException {
        saveUniverse(u, JSynoptic.gui.getOwner());
        FileSerializer fs = new FileSerializer();
        fs.write(out, u.getFile(), CurrentPathProvider.currentPathProvider
                .getCurrentPath());
    }
View Full Code Here

TOP

Related Classes of simtools.util.FileSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.