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

#ifndef __java_nio_MappedByteBufferImpl__
#define __java_nio_MappedByteBufferImpl__

#pragma interface

#include <java/nio/MappedByteBuffer.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace nio
    {
      class MappedByteBufferImpl;
      class DoubleBuffer;
      class FloatBuffer;
      class LongBuffer;
      class IntBuffer;
      class ShortBuffer;
      class CharBuffer;
      class ByteBuffer;
    }
  }
  namespace gnu
  {
    namespace gcj
    {
      class RawData;
    }
  }
}

class java::nio::MappedByteBufferImpl : public ::java::nio::MappedByteBuffer
{
public:
  MappedByteBufferImpl (::gnu::gcj::RawData *, jint, jboolean);
  virtual jboolean isReadOnly () { return readOnly; }
  virtual jbyte get ();
  virtual ::java::nio::ByteBuffer *put (jbyte);
  virtual jbyte get (jint);
  virtual ::java::nio::ByteBuffer *get (jbyteArray, jint, jint);
  virtual ::java::nio::ByteBuffer *put (jint, jbyte);
  virtual ::java::nio::ByteBuffer *compact ();
  virtual jboolean isDirect ();
  virtual ::java::nio::ByteBuffer *slice ();
private:
  ::java::nio::ByteBuffer *duplicate (jboolean);
public:
  virtual ::java::nio::ByteBuffer *duplicate ();
  virtual ::java::nio::ByteBuffer *asReadOnlyBuffer ();
  virtual ::java::nio::CharBuffer *asCharBuffer ();
  virtual ::java::nio::ShortBuffer *asShortBuffer ();
  virtual ::java::nio::IntBuffer *asIntBuffer ();
  virtual ::java::nio::LongBuffer *asLongBuffer ();
  virtual ::java::nio::FloatBuffer *asFloatBuffer ();
  virtual ::java::nio::DoubleBuffer *asDoubleBuffer ();
  virtual jchar getChar ();
  virtual ::java::nio::ByteBuffer *putChar (jchar);
  virtual jchar getChar (jint);
  virtual ::java::nio::ByteBuffer *putChar (jint, jchar);
  virtual jshort getShort ();
  virtual ::java::nio::ByteBuffer *putShort (jshort);
  virtual jshort getShort (jint);
  virtual ::java::nio::ByteBuffer *putShort (jint, jshort);
  virtual jint getInt ();
  virtual ::java::nio::ByteBuffer *putInt (jint);
  virtual jint getInt (jint);
  virtual ::java::nio::ByteBuffer *putInt (jint, jint);
  virtual jlong getLong ();
  virtual ::java::nio::ByteBuffer *putLong (jlong);
  virtual jlong getLong (jint);
  virtual ::java::nio::ByteBuffer *putLong (jint, jlong);
  virtual jfloat getFloat ();
  virtual ::java::nio::ByteBuffer *putFloat (jfloat);
  virtual jfloat getFloat (jint);
  virtual ::java::nio::ByteBuffer *putFloat (jint, jfloat);
  virtual jdouble getDouble ();
  virtual ::java::nio::ByteBuffer *putDouble (jdouble);
  virtual jdouble getDouble (jint);
  virtual ::java::nio::ByteBuffer *putDouble (jint, jdouble);
public: // actually package-private
  virtual void unmapImpl ();
  virtual jboolean isLoadedImpl ();
  virtual void loadImpl ();
  virtual void forceImpl ();
  jboolean __attribute__((aligned(__alignof__( ::java::nio::MappedByteBuffer ))))  readOnly;
public:
  ::gnu::gcj::RawData *implPtr;
  jlong implLen;

  static ::java::lang::Class class$;
};

#endif /* __java_nio_MappedByteBufferImpl__ */
