I开发者_C百科 am trying to build a server program that receives file from client using DataInputStream and BufferedInputStream.
I wrote a Course class that has constructors that read from text and binary files and has methods to write to text and binary files. How do I write a junit test to test this class?
I have to create an application that retrieves a xml file on the web, and stores it on the SD card in a Blackberry phone. The xml file is updated by a cron job.So I want the application to download th
I am trying to understand this snippet of code DataInputStream stream = new DataInputStream( new ByteArrayInputStream(messageBuffer));
I am using dataInputStream\'s readFully message to read a fixed length byte array as: byte[] record = new byte[4660004];
I\'m having 开发者_Go百科troubles with reading a UTF-8 encoded text file in Hebrew. I read all Hebrew characters successfully, except to two letters = \'מ\' and \'א\'.
I\'m trying to read html开发者_StackOverflow社区 code from a URL Connection. In one case the html file I\'m trying to read includes 5 line breaks before the actual doc type declaration. In this case t
I am working on a simple AudioTrack example which reads in a PCM file then plays it back. It works great on the android emulator, but on my test phone it fails when reading in the data with the readSh
I want to send data which i have serialized over a TCP connection. I have created a client/server connection and am sending an Object after serializing it.
I have a problem with the below code. It is not clear how I can initialize the variables of in/out. During the creation of this object the program hangs when in the constructor.It hangs at the line o