Namespaces
Variants
Actions

Como manipular um buffer de dados

Jump to: navigation, search
Dados do artigo

Artigo
Tradução:
Última alteração feita por hamishwillee em 08 Dec 2011


Uma dica em Java ME ilustrando uma forma alternativa para manipular o buffer de dados é usando o método setData() para substituir o buffer do datagrama de dados com um novo.

byte[] dataBytes = "Hello, world\n".getBytes( );
dgram.setData(dataBytes, 0, dataBytes.length);
sender.send(dgram);
This page was last modified on 8 December 2011, at 11:33.
128 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved