com.sun.syndication.io.impl
Class XmlFixerReader

java.lang.Object
  extended by java.io.Reader
      extended by com.sun.syndication.io.impl.XmlFixerReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class XmlFixerReader
extends java.io.Reader

Author:
Alejandro Abdelnur

Field Summary
private  java.lang.StringBuffer _buffer
           
private  int _bufferPos
           
private  int _state
           
private static java.util.Map CODED_ENTITIES
           
private static java.util.regex.Pattern ENTITIES_PATTERN
           
protected  java.io.Reader in
           
private  boolean trimmed
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
XmlFixerReader(java.io.Reader in)
           
 
Method Summary
 void close()
           
static void main(java.lang.String[] args)
           
 void mark(int readAheadLimit)
           
 boolean markSupported()
           
 java.lang.String processHtmlEntities(java.lang.String s)
           
 int read()
           
 int read(char[] buffer, int offset, int len)
           
 boolean ready()
           
 void reset()
           
 long skip(long n)
           
private  boolean trimStream()
           
 
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
 

Field Detail

in

protected java.io.Reader in

trimmed

private boolean trimmed

_buffer

private java.lang.StringBuffer _buffer

_bufferPos

private int _bufferPos

_state

private int _state

CODED_ENTITIES

private static java.util.Map CODED_ENTITIES

ENTITIES_PATTERN

private static java.util.regex.Pattern ENTITIES_PATTERN
Constructor Detail

XmlFixerReader

public XmlFixerReader(java.io.Reader in)
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

trimStream

private boolean trimStream()
                    throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.Reader
Throws:
java.io.IOException

read

public int read(char[] buffer,
                int offset,
                int len)
         throws java.io.IOException
Specified by:
read in class java.io.Reader
Throws:
java.io.IOException

skip

public long skip(long n)
          throws java.io.IOException
Overrides:
skip in class java.io.Reader
Throws:
java.io.IOException

ready

public boolean ready()
              throws java.io.IOException
Overrides:
ready in class java.io.Reader
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.Reader

mark

public void mark(int readAheadLimit)
          throws java.io.IOException
Overrides:
mark in class java.io.Reader
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.Reader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Reader
Throws:
java.io.IOException

processHtmlEntities

public java.lang.String processHtmlEntities(java.lang.String s)


Copyright © Sun Microsystems. All Rights Reserved.