summaryrefslogtreecommitdiff
path: root/libjava/java/nio/channels/FileLock.h
blob: fb358583518306a5c5e16d6e69993f66f9c4d8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// 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();
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__