Examples of SafeChunkyOutputStream


Examples of org.eclipse.core.internal.localstore.SafeChunkyOutputStream

    final int numRefs = references.length;
    if (projectLocation == null && numRefs == 0)
      return;
    //write the private metadata file
    try {
      SafeChunkyOutputStream output = new SafeChunkyOutputStream(file);
      DataOutputStream dataOut = new DataOutputStream(output);
      try {
        if (projectLocation == null)
          dataOut.writeUTF(""); //$NON-NLS-1$
        else
          dataOut.writeUTF(URI_PREFIX + projectLocation.toString());
        dataOut.writeInt(numRefs);
        for (int i = 0; i < numRefs; i++)
          dataOut.writeUTF(references[i].getName());
        output.succeed();
      } finally {
        dataOut.close();
      }
    } catch (IOException e) {
      String message = NLS.bind(Messages.resources_exSaveProjectLocation, target.getName());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.