Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.swing.text.rtf

Class RTFEditorKit

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class RTFEditorKit
    extends StyledEditorKit
    This is the default implementation of RTF editing functionality. The RTF support was not written by the Swing team. In the future we hope to improve the support provided.
    • Constructor Detail

      • RTFEditorKit

        public RTFEditorKit()
        Constructs an RTFEditorKit.
    • Method Detail

      • getContentType

        public String getContentType()
        Get the MIME type of the data that this kit represents support for. This kit supports the type text/rtf.
        Overrides:
        getContentType in class DefaultEditorKit
        Returns:
        the type
      • read

        public void read(InputStream in,
                Document doc,
                int pos)
                  throws IOException,
                         BadLocationException
        Insert content from the given stream which is expected to be in a format appropriate for this kind of content handler.
        Overrides:
        read in class DefaultEditorKit
        Parameters:
        in - The stream to read from
        doc - The destination for the insertion.
        pos - The location in the document to place the content.
        Throws:
        IOException - on any I/O error
        BadLocationException - if pos represents an invalid location within the document.
      • write

        public void write(OutputStream out,
                 Document doc,
                 int pos,
                 int len)
                   throws IOException,
                          BadLocationException
        Write content from a document to the given stream in a format appropriate for this kind of content handler.
        Overrides:
        write in class DefaultEditorKit
        Parameters:
        out - The stream to write to
        doc - The source for the write.
        pos - The location in the document to fetch the content.
        len - The amount to write out.
        Throws:
        IOException - on any I/O error
        BadLocationException - if pos represents an invalid location within the document.
      • write

        public void write(Writer out,
                 Document doc,
                 int pos,
                 int len)
                   throws IOException,
                          BadLocationException
        Write content from a document to the given stream as plain text.
        Overrides:
        write in class DefaultEditorKit
        Parameters:
        out - The stream to write to
        doc - The source for the write.
        pos - The location in the document to fetch the content.
        len - The amount to write out.
        Throws:
        IOException - on any I/O error
        BadLocationException - if pos represents an invalid location within the document.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/text/rtf/rtfeditorkit.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut