Class: Rex::Java::Serialization::Model::Element
- Inherits:
-
Object
- Object
- Rex::Java::Serialization::Model::Element
- Defined in:
- lib/rex/java/serialization/model/element.rb
Direct Known Subclasses
Annotation, BlockData, BlockDataLong, ClassDesc, EndBlockData, Field, NewArray, NewClassDesc, NewEnum, NewObject, NullReference, Reference, Reset, Stream, Utf
Instance Attribute Summary collapse
-
#stream ⇒ Object
Returns the value of attribute stream.
Class Method Summary collapse
-
.decode(io, stream = nil) ⇒ Rex::Java::Serialization::Model::Element?
Deserializes a Rex::Java::Serialization::Model::Element.
Instance Method Summary collapse
- #decode(io) ⇒ Object
- #encode ⇒ Object
-
#initialize(stream = nil) ⇒ Element
constructor
A new instance of Element.
-
#to_s ⇒ String
Creates a print-friendly string representation.
Constructor Details
#initialize(stream = nil) ⇒ Element
Returns a new instance of Element.
22 23 24 |
# File 'lib/rex/java/serialization/model/element.rb', line 22 def initialize(stream = nil) self.stream = stream end |
Instance Attribute Details
#stream ⇒ Object
Returns the value of attribute stream.
9 10 11 |
# File 'lib/rex/java/serialization/model/element.rb', line 9 def stream @stream end |
Class Method Details
.decode(io, stream = nil) ⇒ Rex::Java::Serialization::Model::Element?
Deserializes a Rex::Java::Serialization::Model::Element
16 17 18 19 |
# File 'lib/rex/java/serialization/model/element.rb', line 16 def self.decode(io, stream = nil) elem = self.new(stream) elem.decode(io) end |
Instance Method Details
#decode(io) ⇒ Object
26 27 28 |
# File 'lib/rex/java/serialization/model/element.rb', line 26 def decode(io) self end |
#encode ⇒ Object
30 31 32 |
# File 'lib/rex/java/serialization/model/element.rb', line 30 def encode '' end |
#to_s ⇒ String
Creates a print-friendly string representation
37 38 39 |
# File 'lib/rex/java/serialization/model/element.rb', line 37 def to_s self.class.name.split('::').last end |