Package arc.util.io

Class Writes

java.lang.Object
arc.util.io.Writes
All Implemented Interfaces:
Closeable, AutoCloseable

public class Writes extends Object implements Closeable
A wrapper for DataOutput with more concise method names and no IOExceptions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    b(byte[] array)
    write bytes
    void
    b(byte[] array, int offset, int length)
    write bytes
    void
    b(int i)
    write byte
    void
    bool(boolean b)
    write boolean (writes a byte internally)
    void
     
    void
    d(double d)
    write double
    void
    f(float f)
    write float
    static Writes
    get(DataOutput output)
     
    void
    i(int i)
    write int
    void
    l(long i)
    write long
    void
    s(int i)
    write short
    void
    str(String str)
    writes a string (UTF)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • get

      public static Writes get(DataOutput output)
    • l

      public void l(long i)
      write long
    • i

      public void i(int i)
      write int
    • b

      public void b(int i)
      write byte
    • b

      public void b(byte[] array, int offset, int length)
      write bytes
    • b

      public void b(byte[] array)
      write bytes
    • bool

      public void bool(boolean b)
      write boolean (writes a byte internally)
    • s

      public void s(int i)
      write short
    • f

      public void f(float f)
      write float
    • d

      public void d(double d)
      write double
    • str

      public void str(String str)
      writes a string (UTF)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable