How to convert a file format thru java

Hello friends
I would like to know how to convert a file format i.e. from x to y ie using java meaning x file comes it will be converted by an exe to y format.
how can this be achieved in java
heko

Open file x with a FileReader or BufferedReader or maybe another class. Search Java API for this.
Read file x.
Converts contents as you want.
Write file y by a FileWriter or BufferedWriter.
Regards,
Hartmut

Similar Messages

  • I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?

    I have a MacBook Pro, I want to copy Itunes files to an SD card to play in my car, the SD Card doesn't appear in Itunes when I insert it, and I don't know how to convert the files to the correct format, can anyone help?
    Thank you

    So it seems from reading the COMMAND manual that my first issue is that I used a 16GB SD card, and the manual says it will only recogize up to a 2GB SD card. I did use my MB Air's SD card slot and crated a folder and dragged the music files to it, then to the card. So I am going to get a 2GB card and try that next. Otherwise just stick with the iPOD connected. At least that is 8GB

  • How to convert Flat file(.txt) data to an Idoc format(ORDERS05)

    Hi,
    How to convert Flat file(.txt) data to an Idoc format(ORDERS05). If any FM does the same work please let me know.
    thanks in advance,
    Chand
    Moderator message : Duplicate post locked. Read forum rules before posting.
    Edited by: Vinod Kumar on Jul 26, 2011 11:11 AM

    Hi,
            For more information, please check this link.
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Have a look at the FM IDOC_XML_FROM_FILE. May be it helps...
    Regards

  • How to convert Property files into Java Objects.. help needed asap....

    Hi..
    I am currently working on Internationalization. I have created property files for the textual content and using PropertyResourceBundles. Now I want to use ListResourceBundles. So what I want to know is..
    How to convert Property files into Java Objects.. I think Orielly(in their book on Internationalization) has given an utitlity for doing this. But I did not get a chance to look into that. If anyone has come across this same issue, can you please help me and send the code sample on how to do this..
    TIA,
    CK

    Hi Mlk...
    Thanks for all your help and suggestions. I am currently working on a Utility Class that has to convert a properties file into an Object[][].
    This will be used in ListResourceBundle.
    wtfamidoing<i>[0] = currentKey ;
    wtfamidoing<i>[1] = currentValue ;I am getting a compilation error at these lines..(Syntax error)
    If you can help me.. I really appreciate that..
    TIA,
    CK

  • HOW TO CONVERT PDF FILE IN TO XML FILE?

    HOW TO CONVERT PDF FILE IN TO XML FILE

    No Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web.
    Rod Gill
    The one and only Project VBA Book
    Rod Gill Project Management

  • How to display Doc file format in the JEditPane?

    At this time , JEditPane supports RTF and HTML file format ,but
    Could anyone tell me how to display DOC file format using JEditPane
    or other JTextComponents?
    Thx a lot!
    Caton

    Hi,
    there is no support for doc files (M$ Word?) in Java. You would have to create your own classes for that eventually subclassing JEditorPane, EditorKit, Document etc. As well you'd need your own reader for the doc format.
    The problem I see with that however is that there is nothing such as thedoc file format. Microsoft just saves anything produced by MS Word into files ending with .doc. But, if there is anything such as a .doc file format, it changes more often than the weather in April.
    Ulrich

  • How to converting WMV files?

    How to converting WMV files from PC to iPod playable files? thanks for all your help

    I just found this tip on allexperts.com...
    I'm on a windows box at work, so I cant verify the accuracy.
    I have one at home...name escapes me right now...icon is a blue square with 5 black dots (like on a die). It converts audio formats, video formats, extracts audio from video, and will batch process.
    Maybe someone will recognize the desciption and be able to name it.
    =======
    heres one on apples site:
    http://www.apple.com/downloads/macosx/audio/switchfileformatconverterformac.html
    =======
    Tunes will convert wma to mp3 (or acc) format. Here are the instructions:
    To convert a song's file format:
    Choose iTunes > Preferences, then click the Advanced button at the top of the window and click Importing.
    From the Import Using pop-up menu, choose the encoding format that you want to convert the song to, then click OK to save the settings.
    Select one or more songs in your library, then choose Advanced > Convert Selection to MP3, Convert Selection to AAC, Convert Selection to Apple Lossless, Convert Selection to AIFF, or Convert Selection to WAV. (The menu item changes to show what's selected in your Importing preferences.)
    To convert all the songs in a folder or on a disk, hold down the Option key and choose Advanced > "Convert Selection to," then choose the folder or disk containing the songs you want to convert. All the songs in the folder or on the disk will be converted except songs you purchased from the iTunes Store. (Purchased songs are encoded using a protected AAC format that prevents them from being converted.)

  • How to convert XMl file to XSD file

    how to convert XMl file to XSD file ?
    i have a xml file format  it has to be converted to xsd file through ABAP .
    Regards
    Anbu B

    i got the answer....
    Regards
    Anbu B

  • How to convert .caf files to WAV, MP3, WMA etc

    I use QuickVoice free app on my ipad2 to record memos. I’ve just found out how to convert the files and play them on my Windows computer. First I used this program call QuickVoice Sync to copy my recording on my computer, used this link:
    www.nFinityInc.com/QuickVoiceSyncWin.exe   - for Windows
    www.nFinityInc.com/QuickVoiceSyncMac.zip   - for Mac users
    to download QuickVoice Sync onto your computer. Open the program up and it firsts asks you to backup your files, which I did through iTunes and iCloud just incase. Then I clicked import, the program then searched for my recording and copy them into a new folder in my documents called QuickVoice. My recording in the folder were .caf files which I couldn't open in Windows so I used a program called Audacity. Use this link to download:
    http://audacity.sourceforge.net/download/
    I downloaded the program and opened up one of my .caf files my clicking 'file', then 'open' in Audacity. When the files was opened I clicked 'file' again then clicked 'export' to convert my .caf file to WAV file for example. You can change the type of file my scrolling through the different types of files available by clicking the box next to 'save as type', I chose 'WAV (Microsoft) 16bit PCM' then click save. You can also change where you save the file by clicking another location before you click 'save'.
    I can now play these files in Windows Media Player on my computer or playing them in my QuickVoice app on my ipad2.
    Hope this helps, if there are any questions please ask and I will try to answer the best I can. I figured this out myself and I’m not a big pro in computers so I will do my best to answer any quires.

    Try "Easy CAF Converter for Logic Pro" on the Mac App Store.
    According to an app description,
    "The Easy CAF Converter for Logic Pro automatically converts Apple Loops installed with Logic Pro 9 and X to uncompressed audio formats (aiff and wave).
    With the Easy CAF Converter for Logic Pro, musicians using other major DAWs (e.g., Cubase, ProTools, Ableton Live, and Studio One, etc.) can now easily use the rich set of apple loops of Logic Pro in their music productions."
    App Store location:
    https://itunes.apple.com/us/app/easy-caf-converter-for-logic/id851083620?l=ko&ls =1&mt=12

  • How to convert video files on itunes help

    how do you convert a movie file using itunes?
    i have a movie file randomly as .mkv
    thanks!

    Well I suggest that you check out the other pages on that site - you might get some info on how to convert - or - do a Google search for a converter program.
    In some respects your question is not about iTunes but about how to convert a file into a format that iTunes/QT can play. QT plays various CODECS and there are a number of plugins available for QT to play additional CODECS beyond the standard default set.
    MJ

  • Pocket Playlist- how to convert mp4 file to use on pocket playlist

    I have an mp4 video that i would like to use on my pocket playlist, but not sure how to convert the file?

    Hello Andy,
    I do not have an HP Pocket drive but according to the manual...
    The pocket acts as any other drive to store files on. Its the media player that you use that has to support the type of file you are playing.
    This is cut from the manual.
    "File types supported by HP Pocket PlaylistYour playback device may not support all of the following formats. If your playback device does not support a format, use the ArcSoft MediaConverter 7 computer application to convert (transcode) the files into a format that will play back on your mobile device.
    HP Pocket Playlist supports the following file formats:
    Video: .avi, .3gp, .flv, .m4v, .m4p, .mov, mp4, .mpeg, .mpeg2, .mpg, .ogg, .qt, .ts, .tts, .wmv
    Music: .aac, .ac3, .adts, asf, .lpcm, .m4a, .mp3, wav, wma
    Photo: .bmp, .gif, .jpeg, .png, .tiff, .tif
    You need to import files with the "Arcsoft Media Converter" which will convert the format for you.
    Here are the links to all the info for HP Pocket Drives.
    Using the HP Pocket Playist to Play Media Files
    Converting Media Files Using Arcsoft MediaConverter 7
    Hope it helps.

  • How to convert .mts file to Adobe Premiere?

    I shoot my family party with my Sony HDR-XR500V with the output video format of .MTS . I tried to do some editing on Adobe Premiere Pro CS4. But it does not support mts file. I have made some searches ,and i found that the Adobe Premiere Pro CS4 can edit the file formats of mpeg2 and avi. So i am wondering how to convert mts file to mpeg2 and avi for me to edit on Adobe Premiere Pro CS4? what software and programme should i need.and where can i get it. Thanks.

    As long as you have a AVCHD converter, you can use almost any editing software to edit and perfect your MTS/M2TS video files. What you should do is converting AVCHD video files into the video formats editable by editing software you are using.
    As for this question, you can convert MTS from your HD camcorder to MPEG 2,MOV or AVI supportable by Adobe Premiere.
    I recommend Brorsoft MTS/M2TS Converter for Mac which is the fastest and best quality video converter i ever used.It can help you to convert MTS/M2TS recording to some playable and editable video formats, like MOV for editing on iMovie,FCP,FCE and Adobe Premiere you are using.
    I ever used some video converter which produces video files with the issue of video and audio out of sync, but Brorsoft works fine in this point.
    NiCE TOOL.
    http://www.brorsoft.com/mts-converter-mac/index.html

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • How to convert .class file to exec file...

    hi.
    how to convert .class file to exec file...
    please explain me clearly.....
    thanks...

    Placing your exact "question" into google:
    http://www.google.com/search?q=how+to+convert+.class+file+to+exec+file...

  • How to Install .CAP file in the Java Card?

    Hi Friends..
    How to install *.CAP* file in the Java Card?..
    I've GPShell script as follows :
    mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 2
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4f -enc_key 404142434445464748494a4b4c4d4e4f
    install_for_load -pkgAID a00000006203010c01 -nvCodeLimit 500  -sdAID A000000003000000
    load -file HelloWorld.cap
    card_disconnect
    release_contextwith that script i can load HelloWorld.cap file successfully..
    Now, how to install the HelloWorld.cap file?..
    if i add script : load -file HelloWorld.cap i got this error :
    install -file HelloWorld.cap
    file name HelloWorld.cap
    Command --> 80E602001B09A00000006203010C0107A00000015100000006EF04C60201A80000
    Wrapped command --> 84E602002309A00000006203010C0107A00000015100000006EF04C60201
    A80030C859793049B85300
    Response <-- 6985
    install_for_load() returns 0x80206985 (6985: Command not allowed - Conditions of
    use not satisfied.)i ask this question because when i tried to select the applet through its AID, by this script :
    establish_context
    card_connect -readerNumber 2
    select -AID a00000006203010c0101i got this message error : select_application() returns 0x80216A82 (6A82: The application to be selected could not be found.)
    but there's exactly any that AID in my Java Card..
    here's is the list of AID from My Java Card :
    C:\GPShell-1.4.2>GPShell listgp211.txt
    mode_211
    enable_trace
    establish_context
    card_connect -readerNumber 3
    * reader name OMNIKEY CardMan 5x21-CL 0
    select -AID a000000003000000
    Command --> 00A4040008A000000003000000
    Wrapped command --> 00A4040008A000000003000000
    Response <-- 6F108408A000000003000000A5049F6501FF9000
    open_sc -security 1 -keyind 0 -keyver 0 -mac_key 404142434445464748494a4b4c4d4e4
    f -enc_key 404142434445464748494a4b4c4d4e4f // Open secure channel
    Command --> 80CA006600
    Wrapped command --> 80CA006600
    Response <-- 664C734A06072A864886FC6B01600C060A2A864886FC6B02020101630906072A864
    886FC6B03640B06092A864886FC6B040215650B06092B8510864864020102660C060A2B060104012
    A026E01029000
    Command --> 8050000008AAF7A87C6013BC0300
    Wrapped command --> 8050000008AAF7A87C6013BC0300
    Response <-- 0000715457173C2A8FC1FF0200937A55C288805D8F2A04CCD43FA7E69000
    Command --> 848201001023CA18742D36165ED992CFF2146C3D51
    Wrapped command --> 848201001023CA18742D36165ED992CFF2146C3D51
    Response <-- 9000
    get_status -element 10
    Command --> 80F21000024F0000
    Wrapped command --> 84F210000A4F004FF8BE1492F7275400
    Response <-- 0CF0544C00004D4F44554C415201000009A00000006203010C010100010AA000000
    06203010C01019000
    GP211_get_status() returned 2 items
    List of Ex. Load File (AID state Ex. Module AIDs)
    f0544c00004d4f44554c4152        1
    a00000006203010c01      1
            a00000006203010c0101
    card_disconnect
    release_contextPlease help me..
    And please correct me if i'm wrong,,
    Thanks in advance..

    Any suggestions for my question?..
    Please help me..
    Thanks in advance..

Maybe you are looking for