org.eclipse.cdt.internal.ui
Class DocumentInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.eclipse.cdt.internal.ui.DocumentInputStream
All Implemented Interfaces:
java.io.Closeable

public class DocumentInputStream
extends java.io.InputStream

Input stream which reads from a document


Constructor Summary
DocumentInputStream(org.eclipse.jface.text.IDocument document)
           
 
Method Summary
 org.eclipse.jface.text.IDocument getDocument()
           
 int read()
          
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentInputStream

public DocumentInputStream(org.eclipse.jface.text.IDocument document)
Method Detail

getDocument

public org.eclipse.jface.text.IDocument getDocument()

read

public int read()
         throws java.io.IOException

Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException