// Decompiled by Jad v1.5.7f. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst 
// Source File Name:   CharacterBuffer.java
// Class Version:      45.3

package oracle.sql;

import java.sql.SQLException;

// Referenced classes of package oracle.sql:
//            CharacterSet

// flag ACC_SUPER is set
public final class CharacterBuffer
{
    // Constants:          43
    // Interfaces:         0
    // Fields:             3
    // Methods:            3
    // Class Attributes:   1


    CharacterSet charSet;
    byte bytes[];
    int next;

    // Decompiling method: <init>  Signature: (Loracle/sql/CharacterSet;)V
    // Max stack: 2, #locals: 2, #params: 2
    // Code length: 23 bytes, Code offset: 521
    // Line Number Table found: 5 entries
    // Parameter  0 added: Name this Type Loracle/sql/CharacterBuffer; At 0 23 Range 0 22 Init 0 fixed
    // Parameter  1 added: Name characterset Type Loracle/sql/CharacterSet; At 0 23 Range 0 22 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 23 Range 0 22 Init 0 fixed
    public CharacterBuffer(CharacterSet characterset)
    {
        super();
        charSet = characterset;
        next = 0;
        bytes = new byte[32];
        return;
    }

    // Decompiling method: append  Signature: (I)V
    // Max stack: 3, #locals: 2, #params: 2
    // Code length: 10 bytes, Code offset: 598
    // Line Number Table found: 2 entries
    // Parameter  0 added: Name this Type Loracle/sql/CharacterBuffer; At 0 10 Range 0 9 Init 0 fixed
    // Parameter  1 added: Name i Type I At 0 10 Range 0 9 Init 0
    // RetValue   2 added: Name <returnValue> Type V At 0 10 Range 0 9 Init 0 fixed
    public void append(int i)
        throws SQLException
    {
        charSet.encode(this, i);
        return;
    }

    // Decompiling method: getBytes  Signature: ()[B
    // Max stack: 3, #locals: 1, #params: 1
    // Code length: 13 bytes, Code offset: 660
    // Line Number Table found: 1 entries
    // Parameter  0 added: Name this Type Loracle/sql/CharacterBuffer; At 0 13 Range 0 12 Init 0 fixed
    // RetValue   1 added: Name <returnValue> Type [B At 0 13 Range 0 12 Init 0 fixed
    public byte[] getBytes()
    {
        return CharacterSet.useOrCopy(bytes, 0, next);
    }
}
