
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_CORBA_CDR_AligningOutput__
#define __gnu_CORBA_CDR_AligningOutput__

#pragma interface

#include <java/io/ByteArrayOutputStream.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace CORBA
    {
      namespace CDR
      {
          class AligningOutput;
      }
    }
  }
}

class gnu::CORBA::CDR::AligningOutput : public ::java::io::ByteArrayOutputStream
{

public:
  AligningOutput();
  AligningOutput(jint);
  virtual void setOffset(jint);
  virtual void align(jint);
  virtual void skip(jint);
  virtual jint getPosition();
  virtual void seek(jint);
  virtual JArray< jbyte > * getBuffer();
private:
  jint __attribute__((aligned(__alignof__( ::java::io::ByteArrayOutputStream)))) offset;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_CORBA_CDR_AligningOutput__
