001package net.minecraft.client.mco;
002
003import cpw.mods.fml.relauncher.Side;
004import cpw.mods.fml.relauncher.SideOnly;
005import java.io.OutputStream;
006
007@SideOnly(Side.CLIENT)
008public class RequestPut extends Request
009{
010    private byte[] field_96369_c;
011
012    public RequestPut(String par1Str, byte[] par2ArrayOfByte, int par3, int par4)
013    {
014        super(par1Str, par3, par4);
015        this.field_96369_c = par2ArrayOfByte;
016    }
017
018    public RequestPut func_96368_f()
019    {
020        try
021        {
022            this.field_96367_a.setDoOutput(true);
023            this.field_96367_a.setDoInput(true);
024            this.field_96367_a.setRequestMethod("PUT");
025            OutputStream outputstream = this.field_96367_a.getOutputStream();
026            outputstream.write(this.field_96369_c);
027            outputstream.flush();
028            return this;
029        }
030        catch (Exception exception)
031        {
032            throw new ExceptionMcoHttp("Failed URL: " + this.field_96365_b, exception);
033        }
034    }
035
036    public Request func_96359_e()
037    {
038        return this.func_96368_f();
039    }
040}