Adds support for tracking series and generating pages based on them.
[quanlib.git] / cover.rb
index 5cc80a0f24930027dddd82f8b51ec50348d7f1c0..9b974847d087a800518bdccd983f02bc63e4f59b 100644 (file)
--- a/cover.rb
+++ b/cover.rb
@@ -1,11 +1,19 @@
 
 class Cover
   def initialize(inputStream, path, mimeType)
-    @data = inputStream.read
+    if nil != inputStream
+      @data = inputStream.read
+    else
+      @data = nil
+    end
     @path = path
     @mimeType = mimeType
   end
 
+  def path 
+    @path
+  end
+
   def inspect
     info = []
     if nil != @data