Class: Vertx::FileProps

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb

Overview

Represents properties of a file on the file system.

Constant Summary

@@j_api_type =
Object.new

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Boolean) accept?(obj)

Returns:

  • (Boolean)


18
19
20
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 18

def @@j_api_type.accept?(obj)
  obj.class == FileProps
end

+ (Object) j_api_type



27
28
29
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 27

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



30
31
32
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 30

def self.j_class
  Java::IoVertxCoreFile::FileProps.java_class
end

+ (Object) unwrap(obj)



24
25
26
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 24

def @@j_api_type.unwrap(obj)
  obj.j_del
end

+ (Object) wrap(obj)



21
22
23
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 21

def @@j_api_type.wrap(obj)
  FileProps.new(obj)
end

Instance Method Details

- (Fixnum) creation_time

The date the file was created

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


35
36
37
38
39
40
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 35

def creation_time
  if !block_given?
    return @j_del.java_method(:creationTime, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling creation_time()"
end

- (true, false) directory?

Is the file a directory?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


59
60
61
62
63
64
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 59

def directory?
  if !block_given?
    return @j_del.java_method(:isDirectory, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling directory?()"
end

- (Fixnum) last_access_time

The date the file was last accessed

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


43
44
45
46
47
48
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 43

def last_access_time
  if !block_given?
    return @j_del.java_method(:lastAccessTime, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling last_access_time()"
end

- (Fixnum) last_modified_time

The date the file was last modified

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


51
52
53
54
55
56
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 51

def last_modified_time
  if !block_given?
    return @j_del.java_method(:lastModifiedTime, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling last_modified_time()"
end

- (true, false) other?

Is the file some other type? (I.e. not a directory, regular file or symbolic link)

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


67
68
69
70
71
72
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 67

def other?
  if !block_given?
    return @j_del.java_method(:isOther, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling other?()"
end

- (true, false) regular_file?

Is the file a regular file?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


75
76
77
78
79
80
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 75

def regular_file?
  if !block_given?
    return @j_del.java_method(:isRegularFile, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling regular_file?()"
end

- (Fixnum) size

The size of the file, in bytes

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


91
92
93
94
95
96
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 91

def size
  if !block_given?
    return @j_del.java_method(:size, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling size()"
end

- (true, false) symbolic_link?

Is the file a symbolic link?

Returns:

  • (true, false)

Raises:

  • (ArgumentError)


83
84
85
86
87
88
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/file_props.rb', line 83

def symbolic_link?
  if !block_given?
    return @j_del.java_method(:isSymbolicLink, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling symbolic_link?()"
end