Package com.stuffwithstuff.magpie.util

Examples of com.stuffwithstuff.magpie.util.FileWriter.writeByte()


  @Doc("Writes the given byte (value from 0 to 255 inclusive) to this File.")
  public static class WriteByte implements Intrinsic {
    public Obj invoke(Context context, Obj left, Obj right) {
      FileWriter writer = (FileWriter)left.getValue();
      try {
        writer.writeByte(right.asInt());
        return right;
      } catch (IOException e) {
        throw context.error("IOError", "Could not write.");
      }
    }
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.