Terrier IR Platform
2.2.1

uk.ac.gla.terrier.utility
Class LookAheadStreamCaseInsensitive

java.lang.Object
  extended by java.io.InputStream
      extended by uk.ac.gla.terrier.utility.LookAheadStream
          extended by uk.ac.gla.terrier.utility.LookAheadStreamCaseInsensitive
All Implemented Interfaces:
java.io.Closeable

public class LookAheadStreamCaseInsensitive
extends LookAheadStream

Version of LookAheadStream that is case-insensitive

Since:
2.1
Version:
$Revision: 1.2 $
Author:
Craig Macdonald

Constructor Summary
LookAheadStreamCaseInsensitive(java.io.InputStream parent, java.lang.String endMarker)
          Create a LookAheadStream that is case insensitive
 
Method Summary
 int read()
          Read a character from the parent stream, first checking that it doesnt form part of the end marker.
 
Methods inherited from class uk.ac.gla.terrier.utility.LookAheadStream
close, mark, markSupported, read, read, ready, reset, skip
 
Methods inherited from class java.io.InputStream
available, read, read
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAheadStreamCaseInsensitive

public LookAheadStreamCaseInsensitive(java.io.InputStream parent,
                                      java.lang.String endMarker)
Create a LookAheadStream that is case insensitive

Parameters:
parent - The InputStream to wrap
endMarker - the marker at which to give EOF
Method Detail

read

public int read()
         throws java.io.IOException
Read a character from the parent stream, first checking that it doesnt form part of the end marker.

Overrides:
read in class LookAheadStream
Returns:
int the code of the read character, or -1 if the end of the stream has been reached.
Throws:
java.io.IOException - if there is any error while reading from the stream.

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow