Class BytesWriter

java.lang.Object
me.saro.kit.bytes.BytesWriter

public class BytesWriter
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    BytesWriter()  
    BytesWriter​(int initSize, java.nio.charset.Charset charset)  
  • Method Summary

    Modifier and Type Method Description
    BytesWriter add​(byte[] buf)  
    BytesWriter add​(byte[] buf, int offset, int length)  
    BytesWriter add​(int data, int fixedSize)  
    BytesWriter add​(long data, int fixedSize)  
    BytesWriter add​(short data, int fixedSize)  
    BytesWriter add​(java.lang.String text)  
    BytesWriter add​(java.lang.String text, int fixedSize)  
    void bind​(java.io.OutputStream os)  
    BytesWriter fillByte​(byte fillByte)  
    byte[] toBytes()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BytesWriter

      public BytesWriter()
    • BytesWriter

      public BytesWriter​(int initSize, java.nio.charset.Charset charset)
  • Method Details