// 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>

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

class java::nio::MappedByteBufferImpl : public ::java::nio::MappedByteBuffer
{
public:
  MappedByteBufferImpl (::java::nio::channels::FileChannelImpl *);
  MappedByteBufferImpl (::java::nio::channels::FileChannelImpl *, jint, jint, jint, jint, jint, jboolean);
  virtual jboolean isReadOnly () { return readOnly; }
  static jbyte getImpl (::java::nio::channels::FileChannelImpl *, jint, jint, ::gnu::gcj::RawData *);
  static void putImpl (::java::nio::channels::FileChannelImpl *, jint, jint, jbyte, ::gnu::gcj::RawData *);
  virtual jbyte get ();
  virtual ::java::nio::ByteBuffer *put (jbyte);
  virtual jbyte get (jint);
  virtual ::java::nio::ByteBuffer *put (jint, jbyte);
  virtual ::java::nio::ByteBuffer *compact ();
  virtual jboolean isDirect ();
  virtual ::java::nio::ByteBuffer *slice ();
  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 ();
  jchar getChar ();
  ::java::nio::ByteBuffer *putChar (jchar);
  jchar getChar (jint);
  ::java::nio::ByteBuffer *putChar (jint, jchar);
  jshort getShort ();
  ::java::nio::ByteBuffer *putShort (jshort);
  jshort getShort (jint);
  ::java::nio::ByteBuffer *putShort (jint, jshort);
  jint getInt ();
  ::java::nio::ByteBuffer *putInt (jint);
  jint getInt (jint);
  ::java::nio::ByteBuffer *putInt (jint, jint);
  jlong getLong ();
  ::java::nio::ByteBuffer *putLong (jlong);
  jlong getLong (jint);
  ::java::nio::ByteBuffer *putLong (jint, jlong);
  jfloat getFloat ();
  ::java::nio::ByteBuffer *putFloat (jfloat);
  jfloat getFloat (jint);
  ::java::nio::ByteBuffer *putFloat (jint, jfloat);
  jdouble getDouble ();
  ::java::nio::ByteBuffer *putDouble (jdouble);
  jdouble getDouble (jint);
  ::java::nio::ByteBuffer *putDouble (jint, jdouble);
public: // actually package-private
  jboolean __attribute__((aligned(__alignof__( ::java::nio::MappedByteBuffer ))))  readOnly;
  ::gnu::gcj::RawData *map_address;
public:
  ::java::nio::channels::FileChannelImpl *ch;

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

#endif /* __java_nio_MappedByteBufferImpl__ */
