marc4j4r 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/doc/MARC4J4R.html CHANGED
@@ -62,16 +62,6 @@
62
62
  </dl>
63
63
  <div class="clear"></div>
64
64
 
65
- <h2>Defined Under Namespace</h2>
66
- <p class="children">
67
-
68
-
69
-
70
-
71
- <strong class="classes">Classes:</strong> <a href="MARC4J4R/AlephSequentialReader.html" title="MARC4J4R::AlephSequentialReader (class)">AlephSequentialReader</a>
72
-
73
-
74
- </p>
75
65
 
76
66
  <h2>Constant Summary</h2>
77
67
 
@@ -79,11 +69,13 @@
79
69
 
80
70
  <dt id="NEWINIT-constant" class="">NEWINIT =
81
71
  <span class="summary_desc">
82
- Add some sugar to the MarcReader interface.
72
+ A string used to override the initializer for each stream reader Need to do
73
+ it this ugly way because of the way java and ruby interact; can&#8217;t
74
+ just add it to the MarcReader interface the way I wanted to.
83
75
 
84
76
  </span>
85
77
  </dt>
86
- <dd><pre class="code"><span class='string val'>&quot;include Enumerable\nalias_method :oldinit, :initialize\ndef initialize(fromwhere)\nstream = nil\nif fromwhere.is_a? Java::JavaIO::InputStream or fromwhere.is_a? Java::JavaIO::ByteArrayInputStream\nstream = fromwhere\nelsif fromwhere.is_a? IO\nstream = fromwhere.to_inputstream\nelse\nstream = java.io.FileInputStream.new(fromwhere.to_java_string)\nend\nif self.class == Java::org.marc4j.MarcPermissiveStreamReader\nself.oldinit(stream, true, true)\nelse\nself.oldinit(stream)\nend\nend\n&quot;</span>
78
+ <dd><pre class="code"><span class='string val'>&quot;alias_method :oldinit, :initialize\ndef initialize(fromwhere)\nstream = nil\nif fromwhere.is_a? Java::JavaIO::InputStream\nstream = fromwhere\nelsif fromwhere.is_a? IO\nstream = fromwhere.to_inputstream\nelse\nstream = java.io.FileInputStream.new(fromwhere.to_java_string)\nend\nif self.class == Java::org.marc4j.MarcPermissiveStreamReader\nself.oldinit(stream, true, true)\nelse\nself.oldinit(stream)\nend\nend\n&quot;</span>
87
79
  </pre></dd>
88
80
 
89
81
  </dl>
@@ -241,36 +233,32 @@ A MarcReader object with the syntactic sugar added in this file (e.g, each)
241
233
  <pre class="lines">
242
234
 
243
235
 
244
- 101
245
- 102
246
- 103
247
- 104
248
- 105
249
- 106
250
- 107
251
- 108
252
- 109
253
- 110
254
- 111
255
- 112
256
- 113
257
- 114</pre>
236
+ 76
237
+ 77
238
+ 78
239
+ 79
240
+ 80
241
+ 81
242
+ 82
243
+ 83
244
+ 84
245
+ 85
246
+ 86
247
+ 87</pre>
258
248
  </td>
259
249
  <td>
260
- <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 101</span>
250
+ <pre class="code"><span class="info file"># File 'lib/marc4j4r.rb', line 76</span>
261
251
 
262
252
  <span class='def def kw'>def</span> <span class='reader identifier id'>reader</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='comma token'>,</span> <span class='type identifier id'>type</span> <span class='assign token'>=</span> <span class='symbol val'>:strictmarc</span><span class='rparen token'>)</span>
263
253
  <span class='case case kw'>case</span> <span class='type identifier id'>type</span>
264
- <span class='when when kw'>when</span> <span class='symbol val'>:strictmarc</span> <span class='then then kw'>then</span>
254
+ <span class='when when kw'>when</span> <span class='symbol val'>:strictmarc</span>
265
255
  <span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcStreamReader constant id'>MarcStreamReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
266
- <span class='when when kw'>when</span> <span class='symbol val'>:permissivemarc</span> <span class='then then kw'>then</span>
256
+ <span class='when when kw'>when</span> <span class='symbol val'>:permissivemarc</span>
267
257
  <span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcPermissiveStreamReader constant id'>MarcPermissiveStreamReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
268
- <span class='when when kw'>when</span> <span class='symbol val'>:marcxml</span> <span class='then then kw'>then</span>
258
+ <span class='when when kw'>when</span> <span class='symbol val'>:marcxml</span>
269
259
  <span class='return return kw'>return</span> <span class='Java constant id'>Java</span><span class='colon2 op'>::</span><span class='org identifier id'>org</span><span class='dot token'>.</span><span class='marc4j identifier id'>marc4j</span><span class='dot token'>.</span><span class='MarcXmlReader constant id'>MarcXmlReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
270
- <span class='when when kw'>when</span> <span class='symbol val'>:alephsequential</span> <span class='then then kw'>then</span>
271
- <span class='return return kw'>return</span> <span class='MARC4J4R constant id'>MARC4J4R</span><span class='colon2 op'>::</span><span class='AlephSequentialReader constant id'>AlephSequentialReader</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='input identifier id'>input</span><span class='rparen token'>)</span>
272
260
  <span class='else else kw'>else</span>
273
- <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='dstring node'>&quot;Reader type #{type} illegal: must be :strictmarc, :permissivemarc, :marcxml, or :alephsequential&quot;</span>
261
+ <span class='raise identifier id'>raise</span> <span class='ArgumentError constant id'>ArgumentError</span><span class='comma token'>,</span> <span class='string val'>&quot;Reader type must be :strictmarc, :permissivemarc, or :marcxml&quot;</span>
274
262
  <span class='end end kw'>end</span>
275
263
  <span class='end end kw'>end</span>
276
264
  </pre>
@@ -284,7 +272,7 @@ A MarcReader object with the syntactic sugar added in this file (e.g, each)
284
272
  </div>
285
273
 
286
274
  <div id="footer">
287
- Generated on Sat Apr 3 22:01:07 2010 by
275
+ Generated on Fri Feb 12 16:38:06 2010 by
288
276
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
289
277
  0.5.3 (ruby-1.8.7).
290
278
  </div>