ca.uhn.hl7v2.app
Class HL7ServerTestHelper.CommentFilterReader

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

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

TODO: this code is copied from HAPI ... should make it part of HAPI public API instead 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
HL7ServerTestHelper.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

HL7ServerTestHelper.CommentFilterReader

public HL7ServerTestHelper.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.