File: dominputsource.rb

package info (click to toggle)
ruby-xmlparser 0.7.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: ruby: 9,342; ansic: 2,017; makefile: 11
file content (29 lines) | stat: -rw-r--r-- 714 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## -*- Ruby -*-
## XML::DOM::DOMEntityResolver
## 2001 by yoshidam
##

module XML
  module DOM
    class DOMInputSource
      def initialize
        @bstream = nil
        @cstream = nil
        @encoding = nil
        @pubid = nil
        @sysid = nil
      end

      def byteStream; @bstream; end
      def byteStream=(stream); @bstream = stream; end
      def characterStream; @cstream;  end
      def characterStream=(stream); @cstream = stream; end
      def encoding; @encoding; end
      def encoding=(enc);@encoding = enc; end
      def publicId; @pubid; end
      def publicId=(pubid); @pubid = pubid; end
      def systemId; @sysid; end
      def systemId=(sysid); @sysid = sysid; end
    end
  end
end