a1906e8bbf
2012-12-19 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (20121202). * Regenerate class and header files. * Regenerate auto* files. * sources.am, gcj/javaprims.h: Regenerate. * gnu/java/nio/FileLockImpl.java (close): New override. From-SVN: r194618
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
|
|
|
#ifndef __java_nio_channels_FileLock__
|
|
#define __java_nio_channels_FileLock__
|
|
|
|
#pragma interface
|
|
|
|
#include <java/lang/Object.h>
|
|
extern "Java"
|
|
{
|
|
namespace java
|
|
{
|
|
namespace nio
|
|
{
|
|
namespace channels
|
|
{
|
|
class FileChannel;
|
|
class FileLock;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
class java::nio::channels::FileLock : public ::java::lang::Object
|
|
{
|
|
|
|
public: // actually protected
|
|
FileLock(::java::nio::channels::FileChannel *, jlong, jlong, jboolean);
|
|
public:
|
|
virtual jboolean isValid() = 0;
|
|
virtual void release() = 0;
|
|
virtual ::java::nio::channels::FileChannel * channel();
|
|
virtual jboolean isShared();
|
|
virtual jboolean overlaps(jlong, jlong);
|
|
virtual jlong position();
|
|
virtual jlong size();
|
|
virtual ::java::lang::String * toString();
|
|
virtual void close() = 0;
|
|
private:
|
|
::java::nio::channels::FileChannel * __attribute__((aligned(__alignof__( ::java::lang::Object)))) channel__;
|
|
jlong position__;
|
|
jlong size__;
|
|
jboolean shared;
|
|
public:
|
|
static ::java::lang::Class class$;
|
|
};
|
|
|
|
#endif // __java_nio_channels_FileLock__
|