¡@

Home 

java Programming Glossary: thedata

Android webserver shows html pages as text

http://stackoverflow.com/questions/18055743/android-webserver-shows-html-pages-as-text

new BufferedInputStream new FileInputStream theFile byte theData new byte int theFile.length fis.readFully theData fis.close.. byte theData new byte int theFile.length fis.readFully theData fis.close if version.startsWith HTTP send a MIME header out.write.. n out.write Server JHTTP 1.0 r n out.write Content length theData.length r n out.write Content type contentType r n r n out.flush..

How to have the user choose an audio file and play it in Java

http://stackoverflow.com/questions/5724068/how-to-have-the-user-choose-an-audio-file-and-play-it-in-java

File theFile null @SuppressWarnings restriction AudioData theData null InputStream nowPlaying null @SuppressWarnings deprecation.. FileInputStream theFile AudioStream as new AudioStream fis theData as.getData catch IOException e System.err.println e @SuppressWarnings.. e @SuppressWarnings restriction public void play stop if theData null open if theData null AudioDataStream ads new AudioDataStream..