Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package org.apache.xerces.util;
  
  import java.io.Reader;
  
  public final class SAXInputSource extends XMLInputSource
 {
   private XMLReader fXMLReader;
   private InputSource fInputSource;
 
   public SAXInputSource()
   {
     this(null);
   }
 
   public SAXInputSource(InputSource paramInputSource)
   {
     this(null, paramInputSource);
   }
 
   public SAXInputSource(XMLReader paramXMLReaderInputSource paramInputSource)
   {
     super(paramInputSource != null ? paramInputSource.getPublicId() : null, paramInputSource != null ? paramInputSource.getSystemId() : nullnull);
     if (paramInputSource != null)
     {
       setByteStream(paramInputSource.getByteStream());
       setCharacterStream(paramInputSource.getCharacterStream());
       setEncoding(paramInputSource.getEncoding());
     }
     this.fInputSource = paramInputSource;
     this.fXMLReader = paramXMLReader;
   }
 
   public void setXMLReader(XMLReader paramXMLReader)
   {
     this.fXMLReader = paramXMLReader;
   }
 
   public XMLReader getXMLReader()
   {
     return this.fXMLReader;
   }
 
   public void setInputSource(InputSource paramInputSource)
   {
     if (paramInputSource != null)
     {
       setPublicId(paramInputSource.getPublicId());
       setSystemId(paramInputSource.getSystemId());
       setByteStream(paramInputSource.getByteStream());
       setCharacterStream(paramInputSource.getCharacterStream());
       setEncoding(paramInputSource.getEncoding());
     }
     else
     {
       setPublicId(null);
       setSystemId(null);
       setByteStream(null);
       setCharacterStream(null);
       setEncoding(null);
     }
     this.fInputSource = paramInputSource;
   }
 
   public InputSource getInputSource()
   {
     return this.fInputSource;
   }
 
   public void setPublicId(String paramString)
   {
     super.setPublicId(paramString);
     if (this.fInputSource == null)
       this.fInputSource = new InputSource();
     this.fInputSource.setPublicId(paramString);
   }
 
   public void setSystemId(String paramString)
   {
     super.setSystemId(paramString);
     if (this.fInputSource == null)
       this.fInputSource = new InputSource();
     this.fInputSource.setSystemId(paramString);
   }
 
   public void setByteStream(InputStream paramInputStream)
   {
     super.setByteStream(paramInputStream);
     if (this.fInputSource == null)
       this.fInputSource = new InputSource();
     this.fInputSource.setByteStream(paramInputStream);
   }
 
   public void setCharacterStream(Reader paramReader)
   {
     super.setCharacterStream(paramReader);
    if (this.fInputSource == null)
      this.fInputSource = new InputSource();
    this.fInputSource.setCharacterStream(paramReader);
  }
  public void setEncoding(String paramString)
  {
    super.setEncoding(paramString);
    if (this.fInputSource == null)
      this.fInputSource = new InputSource();
    this.fInputSource.setEncoding(paramString);
  }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     org.apache.xerces.util.SAXInputSource
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X