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.imageio.stream

Class IIOByteBuffer


  • public class IIOByteBuffer
    extends Object
    A class representing a mutable reference to an array of bytes and an offset and length within that array. IIOByteBuffer is used by ImageInputStream to supply a sequence of bytes to the caller, possibly with fewer copies than using the conventional read methods that take a user-supplied byte array.

    The byte array referenced by an IIOByteBuffer will generally be part of an internal data structure belonging to an ImageReader implementation; its contents should be considered read-only and must not be modified.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      byte[] getData()
      Returns a reference to the byte array.
      int getLength()
      Returns the length of the data of interest within the byte array returned by getData.
      int getOffset()
      Returns the offset within the byte array returned by getData at which the data of interest start.
      void setData(byte[] data)
      Updates the array reference that will be returned by subsequent calls to the getData method.
      void setLength(int length)
      Updates the value that will be returned by subsequent calls to the getLength method.
      void setOffset(int offset)
      Updates the value that will be returned by subsequent calls to the getOffset method.

      Eerste pagina van API Java Inhoudsopgave Haut

    • Constructor Detail

      • IIOByteBuffer

        public IIOByteBuffer(byte[] data,
                     int offset,
                     int length)
        Constructs an IIOByteBuffer that references a given byte array, offset, and length.
        Parameters:
        data - a byte array.
        offset - an int offset within the array.
        length - an int specifying the length of the data of interest within byte array, in bytes.
    • Method Detail

      • getData

        public byte[] getData()
        Returns a reference to the byte array. The returned value should be treated as read-only, and only the portion specified by the values of getOffset and getLength should be used.
        Returns:
        a byte array reference.
        See Also:
        getOffset(), getLength(), setData(byte[])
      • setData

        public void setData(byte[] data)
        Updates the array reference that will be returned by subsequent calls to the getData method.
        Parameters:
        data - a byte array reference containing the new data value.
        See Also:
        getData()
      • getOffset

        public int getOffset()
        Returns the offset within the byte array returned by getData at which the data of interest start.
        Returns:
        an int offset.
        See Also:
        getData(), getLength(), setOffset(int)
      • setOffset

        public void setOffset(int offset)
        Updates the value that will be returned by subsequent calls to the getOffset method.
        Parameters:
        offset - an int containing the new offset value.
        See Also:
        getOffset()
      • getLength

        public int getLength()
        Returns the length of the data of interest within the byte array returned by getData.
        Returns:
        an int length.
        See Also:
        getData(), getOffset(), setLength(int)
      • setLength

        public void setLength(int length)
        Updates the value that will be returned by subsequent calls to the getLength method.
        Parameters:
        length - an int containing the new length value.
        See Also:
        getLength()

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/imageio/stream/iiobytebuffer.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