<rdf:RDF
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xml:base='http://snipsnap.org/rdf'>
    <s:Snip rdf:about='http://snipsnap.org/rdf#comment-Victor+Volle/bookservice-macro-2'
         s:oUser=''>
        <s:name>comment-Victor Volle/bookservice-macro-2</s:name>
        <s:content>The code in Radeox (TextFileUrlMapper) is as follows:&#xD;&#xA;&#xD;&#xA;{code} ...&#xD;&#xA;    try{&#xD;&#xA;      BufferedReader br = new BufferedReader(&#xD;&#xA;          new InputStreamReader(&#xD;&#xA;              new FileInputStream(getFileName())));&#xD;&#xA;      addMapping(br);&#xD;&#xA;    } catch (IOException e) {&#xD;&#xA;      log.warn(&quot;Unable to read &quot; + getFileName());&#xD;&#xA;      fileNotFound = true;&#xD;&#xA;    }&#xD;&#xA;&#xD;&#xA;    if (fileNotFound) {&#xD;&#xA;      BufferedReader br = null;&#xD;&#xA;      try {&#xD;&#xA;        br = new BufferedReader(&#xD;&#xA;            new InputStreamReader(&#xD;&#xA;                klass.getResourceAsStream(&quot;/&quot;+getFileName())));&#xD;&#xA;        addMapping(br);&#xD;&#xA;      } catch (Exception e) {&#xD;&#xA;        log.warn(&quot;Unable to read /&quot; + getFileName() + &quot; from jar&quot;);&#xD;&#xA;      }&#xD;&#xA;    }&#xD;&#xA;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;So it first checks the file system for the path that is returned by getFileName(), which is &quot;conf/bookservices.txt&quot;, and then the classpath. I haven&apos;t really tried to get this code running, since neither allows me to use a Snip.</s:content>
        <s:cUser>Victor Volle</s:cUser>
        <s:mUser>Victor Volle</s:mUser>
        <s:mTime>2004-11-11 13:23:04.681</s:mTime>
        <s:cTime>2004-11-11 13:22:59.531</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://snipsnap.org/rdf#Victor Volle'/>
                <rdf:li rdf:resource='#brom'/>
                <rdf:li rdf:resource='#jawn'/>
                <rdf:li rdf:resource='#winkler'/>
                <rdf:li rdf:resource='#aalfaro'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
