class Datafile::ZipPackage::Entry
Public Class Methods
new( pack, entry )
click to toggle source
# File lib/sportdb/formats/datafile_package.rb, line 74 def initialize( pack, entry ) @pack = pack @entry = entry end
Public Instance Methods
name()
click to toggle source
# File lib/sportdb/formats/datafile_package.rb, line 79 def name() @entry.name; end
read()
click to toggle source
# File lib/sportdb/formats/datafile_package.rb, line 80 def read txt = @entry.get_input_stream.read ## puts "** encoding: #{txt.encoding}" #=> encoding: ASCII-8BIT txt = txt.force_encoding( Encoding::UTF_8 ) txt end