org.netbeans.modules.editor.guards/1 1.12.1

org.netbeans.spi.editor.guards
Interface GuardedSectionsProvider

All Known Implementing Classes:
AbstractGuardedSectionsProvider

public interface GuardedSectionsProvider

Subclasses should be able to read content containing guarded section marks and vice versa. You should subclass AbstractGuardedSectionsProvider. Use this interface in case you load or save the Document.


Method Summary
 Reader createGuardedReader(InputStream stream, Charset charset)
          Creates a reader able to read persisted sections.
 Writer createGuardedWriter(OutputStream stream, Charset charset)
          Creates a writer able to write persisted sections.
 

Method Detail

createGuardedReader

Reader createGuardedReader(InputStream stream,
                           Charset charset)
Creates a reader able to read persisted sections.

Parameters:
stream - stream containing persisted sections
charset - charset to decode read bytes, null implies the system default charset.
Returns:
the reader

createGuardedWriter

Writer createGuardedWriter(OutputStream stream,
                           Charset charset)
Creates a writer able to write persisted sections.

Parameters:
stream - stream where the output should be written
charset - charset used by the writer
Returns:
the writer

org.netbeans.modules.editor.guards/1 1.12.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.