ca.uhn.hl7v2.util
Class ParseTester.CommentFilterReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by java.io.PushbackReader
              extended by ca.uhn.hl7v2.util.ParseTester.CommentFilterReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable
Enclosing class:
ParseTester

public static class ParseTester.CommentFilterReader
extends java.io.PushbackReader

Removes C and C++ style comments from a reader stream. C style comments are distinguished from URL protocol delimiters by the preceding colon in the latter.


Field Summary
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
ParseTester.CommentFilterReader(java.io.Reader in)
           
 
Method Summary
 int read()
          Returns the next character, not including comments.
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.PushbackReader
close, mark, markSupported, ready, reset, skip, unread, unread, unread
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseTester.CommentFilterReader

public ParseTester.CommentFilterReader(java.io.Reader in)
Method Detail

read

public int read()
         throws java.io.IOException
Returns the next character, not including comments.

Overrides:
read in class java.io.PushbackReader
Throws:
java.io.IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.PushbackReader
Throws:
java.io.IOException


Copyright © 2001-2011 University Health Network. All Rights Reserved.