java.nio.charset

Class CodingErrorAction


  • public class CodingErrorAction
    extends Object
    A typesafe enumeration for coding-error actions.

    Instances of this class are used to specify how malformed-input and unmappable-character errors are to be handled by charset decoders and encoders.

    Since:
    1.4
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static CodingErrorAction IGNORE
      Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.
      static CodingErrorAction REPLACE
      Action indicating that a coding error is to be handled by dropping the erroneous input, appending the coder's replacement value to the output buffer, and resuming the coding operation.
      static CodingErrorAction REPORT
      Action indicating that a coding error is to be reported, either by returning a CoderResult object or by throwing a CharacterCodingException, whichever is appropriate for the method implementing the coding process.

        

    • Field Detail

      • IGNORE

        public static final CodingErrorAction IGNORE
        Action indicating that a coding error is to be handled by dropping the erroneous input and resuming the coding operation.

      • REPLACE

        public static final CodingErrorAction REPLACE
        Action indicating that a coding error is to be handled by dropping the erroneous input, appending the coder's replacement value to the output buffer, and resuming the coding operation.

      • REPORT

        public static final CodingErrorAction REPORT
        Action indicating that a coding error is to be reported, either by returning a CoderResult object or by throwing a CharacterCodingException, whichever is appropriate for the method implementing the coding process.
    • Method Detail

      • toString

        public String toString()
        Returns a string describing this action.

        Overrides:
        toString in class Object
        Returns:
        A descriptive string

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/nio/charset/CodingErrorAction.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, CodingErrorAction

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut