Package com.bergerkiller.bukkit.common.config

Examples of com.bergerkiller.bukkit.common.config.DataWriter


   * Saves the buffered groups to file
   * @param filename - The groupdata file to write to
   */
  public static void save(String filename) {
    synchronized (managers) {
      new DataWriter(filename) {
        public void write(DataOutputStream stream) throws IOException {
          //clear empty worlds
          Iterator<OfflineGroupManager> iter = managers.values().iterator();
          while (iter.hasNext()) {
            if (iter.next().groupmap.isEmpty()) {
View Full Code Here


        }
      }
    }.read();
  }
  public static void save(String filename) {
    new DataWriter(filename) {
      public void write(DataOutputStream stream) throws IOException {
        stream.writeInt(regionsById.size());
        for (DetectorRegion region : regionsById.values()) {
          StreamUtil.writeUUID(stream, region.id);
          stream.writeUTF(region.world);
View Full Code Here

      sign.stop();
    }
  }

  public static void save(String filename) {
    new DataWriter(filename) {
      public void write(DataOutputStream stream) throws IOException {
        stream.writeInt(spawnSigns.size());
        for (SpawnSign sign : spawnSigns.values()) {
          sign.write(stream);
        }
View Full Code Here

        }
      }
    }.read();
  }
  public static void save(String filename) {
    new DataWriter(filename) {
      public void write(DataOutputStream stream) throws IOException {
        Set<DetectorSignPair> detectorset = new HashSet<DetectorSignPair>(detectors.size() / 2);
        for (DetectorSignPair dec : detectors.values()) {
          detectorset.add(dec);
        }
View Full Code Here

TOP

Related Classes of com.bergerkiller.bukkit.common.config.DataWriter

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.