Exemplo n.º 1
0
 /**
  * Actually read file data into an editor kit's document from an input stream. Called during a
  * file load by {@link #prepareDocument}.
  *
  * <p>The default implementation just calls {@link EditorKit#read(InputStream, Document, int)
  * EditorKit.read(...)}. Subclasses could override this to provide support for persistent guard
  * blocks, for example.
  *
  * @param doc the document to read into
  * @param stream the open stream to read from
  * @param kit the associated editor kit
  * @throws IOException if there was a problem reading the file
  * @throws BadLocationException should not normally be thrown
  * @see #saveFromKitToStream
  */
 protected void loadFromStreamToKit(StyledDocument doc, InputStream stream, EditorKit kit)
     throws IOException, BadLocationException {
   del.superLoadFromStreamToKit(doc, stream, kit);
 }