Method: Java::Util::HashMap#_readJavaData
- Defined in:
- lib/javaobs.rb
#_readJavaData(stream) ⇒ Object
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/javaobs.rb', line 144 def _readJavaData(stream) # Read loadFactor and threshold. stream.defaultReadObject(self) stream.readBlockStart len = stream.readInt size = stream.readInt h = Hash.new size.times do k = stream.readObject v = stream.readObject h[k] = v end stream.readBlockEnd __setobj__(h) end |