info.bliki.wiki.filter
Class WikiTextReader

java.lang.Object
  extended by info.bliki.wiki.filter.WikiTextReader

public class WikiTextReader
extends java.lang.Object


Field Summary
static char[] NO_CHAR
          Constant for an empty char array
 
Constructor Summary
WikiTextReader(java.lang.String templateBaseFileName)
           
 
Method Summary
static char[] getInputStreamAsCharArray(java.io.InputStream stream, int length, java.lang.String encoding)
          Returns the given input stream's contents as a character array.
 java.lang.String getPlainContent(java.lang.String wikiTitle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_CHAR

public static final char[] NO_CHAR
Constant for an empty char array

Constructor Detail

WikiTextReader

public WikiTextReader(java.lang.String templateBaseFileName)
Method Detail

getPlainContent

public java.lang.String getPlainContent(java.lang.String wikiTitle)

getInputStreamAsCharArray

public static char[] getInputStreamAsCharArray(java.io.InputStream stream,
                                               int length,
                                               java.lang.String encoding)
                                        throws java.io.IOException
Returns the given input stream's contents as a character array. If a length is specified (ie. if length != -1), only length chars are returned. Otherwise all chars in the stream are returned. Note this doesn't close the stream.

Throws:
java.io.IOException - if a problem occured reading the stream.


Copyright © 2012 Java Wikipedia API (Bliki engine). All Rights Reserved.