Package org.waveprotocol.box.server.persistence.protos.ProtoAccountStoreData

Examples of org.waveprotocol.box.server.persistence.protos.ProtoAccountStoreData.ProtoAccountData.toByteArray()


    File accountFile = new File(participantIdToFileName(account.getId()));
    OutputStream file = null;
    try {
      file = new FileOutputStream(accountFile);
      ProtoAccountData data = ProtoAccountDataSerializer.serialize(account);
      file.write(data.toByteArray());
      file.flush();
    } catch (IOException e) {
      LOG.severe("Failed to write account data to file: " + accountFile.getAbsolutePath(), e);
      throw new PersistenceException(e);
    } finally {
View Full Code Here


    File accountFile = new File(participantIdToFileName(account.getId()));
    OutputStream file = null;
    try {
      file = new FileOutputStream(accountFile);
      ProtoAccountData data = ProtoAccountDataSerializer.serialize(account);
      file.write(data.toByteArray());
      file.flush();
    } catch (IOException e) {
      LOG.severe("Failed to write account data to file: " + accountFile.getAbsolutePath(), e);
      throw new PersistenceException(e);
    } finally {
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.