Java File Format Conversion Tool and java Conversion Tool
Sometimes a file is correctly formatted and may not be correctly played in some cases. here we can use a java class to help us convert the file format to a correct one.
File source = new File (filepath); int index = amr. lastIndexOf (". "); wavFile = amr. substring (0, index) + ". wav "; File target = new File (wavFile); AudioAttributes audio = new AudioAttributes (); Encoder encoder = new Encoder (); audio. setCodec ("pcm_u8"); audio. setChannels (new Integer (1); audio. setSamplingRate (new Integer (8000); EncodingAttributes attrs = new EncodingAttributes (); can be used to convert the file bit rate, channel and other file header information audio. setCodec ("pcm_u8"); the following values can be referenced:
pcm_u8 pcm_s16le pcm_s24le pcm_s32le pcm_alaw
Of course there are other formats mp3 can refer to the http://suflow.iteye.com/blog/1742838
How to convert a Java-format file to a CLASS file?
The simplest .. at the command prompt, run the cd command to point to the directory where your java file is located,
Then execute the command: javac file name. java
Compile it into a class file
After compilation, run the following command: java file name.
Run class
Using tools, editplus and eclipse can also generate class files
How can I convert the TXT file format to the JAVA format?
It is very troublesome to directly download the TXT novel JAR format.
Download TXT directly
I am reading novels in Tianyu A905. I suggest you use anyview, just like a computer, you can set many options. Install and run the software in jar format
Play with yourself