Class: Vertx::FileProps

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/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)


19
20
21
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 19

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

+ (Object) j_api_type



28
29
30
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 28

def self.j_api_type
  @@j_api_type
end

+ (Object) j_class



31
32
33
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 31

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

+ (Object) unwrap(obj)



25
26
27
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 25

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

+ (Object) wrap(obj)



22
23
24
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 22

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

Instance Method Details

- (Fixnum) creationTime

The date the file was created

Returns:

  • (Fixnum)


76
77
78
79
80
81
82
83
84
85
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 76

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

- (true, false) isDirectory

Is the file a directory?

Returns:

  • (true, false)


128
129
130
131
132
133
134
135
136
137
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 128

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

- (Fixnum) lastAccessTime

The date the file was last accessed

Returns:

  • (Fixnum)


50
51
52
53
54
55
56
57
58
59
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 50

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

- (Fixnum) lastModifiedTime

The date the file was last modified

Returns:

  • (Fixnum)


37
38
39
40
41
42
43
44
45
46
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 37

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

- (true, false) isOther

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

Returns:

  • (true, false)


115
116
117
118
119
120
121
122
123
124
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 115

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

- (true, false) isRegularFile

Is the file a regular file?

Returns:

  • (true, false)


102
103
104
105
106
107
108
109
110
111
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 102

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

- (Fixnum) size

The size of the file, in bytes

Returns:

  • (Fixnum)


63
64
65
66
67
68
69
70
71
72
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 63

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

- (true, false) isSymbolicLink

Is the file a symbolic link?

Returns:

  • (true, false)


89
90
91
92
93
94
95
96
97
98
# File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx/file_props.rb', line 89

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