Package lupos.io

Examples of lupos.io.LuposObjectOutputStream


      final File dir = new File(dbmergesortedbag.folder[runID % dbmergesortedbag.folder.length]);
      dir.mkdirs();
      file = new File(dbmergesortedbag.folder[runID % dbmergesortedbag.folder.length] + runID);
      if (file.exists())
        file.delete();
      os = new LuposObjectOutputStream(this.dbmergesortedbag.sortConfiguration.createOutputStream(new BufferedOutputStream(new FileOutputStream(file))));
    } catch (final IOException e) {
      e.printStackTrace();
    }
  }
View Full Code Here


      final File dir = new File(dbmergesortedbag.folder[0]);
      dir.mkdirs();
      file = new File(dbmergesortedbag.folder[0] + tmp);
      if (file.exists())
        file.delete();
      os = new LuposObjectOutputStream(this.dbmergesortedbag.sortConfiguration.createOutputStream(new BufferedOutputStream(
          new FileOutputStream(file))));
    } catch (final IOException e) {
      e.printStackTrace();
    }
  }
View Full Code Here

                                              % dbmergesortedbag.folder.length]
                                              + runID + "_" + numberFiles);
      if (file.exists())
        file.delete();
      try {
        os = new LuposObjectOutputStream(new BufferedOutputStream(
            new FileOutputStream(file)));
      } catch (final FileNotFoundException e1) {
        System.err.println(e1);
        e1.printStackTrace();
      } catch (final IOException e1) {
View Full Code Here

  void clear() throws FileNotFoundException, IOException {
    deleteAllFiles();
    file = new File(dbmergesortedbag.folder[runID
                                            % dbmergesortedbag.folder.length]
                                            + runID);
    os = new LuposObjectOutputStream(this.dbmergesortedbag.sortConfiguration.createOutputStream(new BufferedOutputStream(new FileOutputStream(file))));
  }
View Full Code Here

    final ByteArrayOutputStream os = new ByteArrayOutputStream();
    final BufferedOutputStream bos = new BufferedOutputStream(os);
    byte[] array = null;

    try {
      final LuposObjectOutputStream loos = new LuposObjectOutputStream(bos);
      loos.writeLuposObject(element);
      loos.flush();
      loos.close();
      os.close();
      bos.close();
      array = os.toByteArray();
    } catch (final IOException e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of lupos.io.LuposObjectOutputStream

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.