Code example for ByteArrayDataOutput

Methods: writewriteShort

0
    
    byte[] var2;
    try 
      { 
      var2 = CompressedStreamTools.compress(par0NBTTagCompound);
      data.writeShort((short)var2.length);
      data.write(var2);
      }  
    catch (IOException e)
      { 
      Config.logError("Severe error writing NBTTagCompound to dataStream");
      e.printStackTrace();
      }  
    } 
  } 
 
/** 
 * Reads a compressed NBTTagCompound from the InputStream 
 */ 
public static NBTTagCompound readNBTTagCompound(ByteArrayDataInput data)
Stop searching for code, let great code find you!  Add Codota to your java IDE