Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Detect encoding of a file

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-01-2010
Member
 
Join Date: Dec 2009
Posts: 192
Detect encoding of a file
  

Hello,
I was just trying some of the examples in java.io that is input and output programs and I am interested in this input output package. I had a question for you guys can I detect encoding of a file or a stream. Is this possible? and if it is then how. What should be required data I should gather for this purpose.

Reply With Quote
  #2  
Old 23-01-2010
Member
 
Join Date: May 2008
Posts: 2,377
Re: Detect encoding of a file

Hey,
Some days before I had done a method for an MIME type, that is I had downloaded it from the internet, but I have not tested it. But I think you require java EE version for that. If I am not wrong you will require the different types of MIME types. If you want more information on this you can visit the java's official site and you can find it there. Hope this will help you.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #3  
Old 23-01-2010
Member
 
Join Date: Dec 2009
Posts: 192
Re: Detect encoding of a file

Hello,
It only remains to determine the encoding and it will be perfect. Is there any method for encoding the files in java. I have no idea about the methods in the java.io package, where can I find the all the methods of the java.io package? If you have any information about the methods that in the java.io package, then please post back or you can just pass a link where the methods of java.io package can be found.
Reply With Quote
  #4  
Old 23-01-2010
Member
 
Join Date: Dec 2009
Posts: 204
Re: Detect encoding of a file

Hello,
I was trying for the same program, and I had installed the JMimeMagic and it worked quite well. I come now to determine the MIME type of files, I think I should be able to do with RSS (I have not implemented yet but it seems that JMimeMagic be able to do so). Now I must determine the encoding. Am I correct with this concept, though I am not getting the desired results.
Reply With Quote
  #5  
Old 23-01-2010
Member
 
Join Date: Nov 2009
Posts: 446
Re: Detect encoding of a file

Hello,
My question can seem silly. Can I do this in JSP? and I do not know exactly where is the role of java in your event site? I am very new to java, but if this can be done in java, then java really interesting. If you can provide some more information on this it will be highly appreciated. Now, even I am interested in learning java. Thank you.
Reply With Quote
  #6  
Old 23-01-2010
Member
 
Join Date: Dec 2009
Posts: 192
Re: Detect encoding of a file

Hello,
I think Java servlet is the one that retrieves all requests (url-pattern = /). It lists the directory contents and create an XML document (that you can see By clicking on "Show XML" in the menu at top left). This document is then converted to XHTML + CSS + JavaScript using a stylesheet. There is also a servlet that retrieves the query, get it serves to provide the icons. Thumbnails are requested with a parameter passed directly to another servlet.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Detect encoding of a file"
Thread Thread Starter Forum Replies Last Post
Dragon Age 2 Error : Switch from current encoding to specified encoding not supported Chulbul Pandey Video Games 3 15-03-2011 06:19 PM
H.264 Encoding using StaxRip Luis-Fernando Windows Software 6 05-05-2010 10:34 PM
Encoding and FileInputStream TechGate Software Development 5 25-01-2010 01:17 PM
How to detect and remove XC.exe file ? Claudius Networking & Security 3 19-05-2009 03:19 PM
How to detect hosts file exists? Bilal Networking & Security 3 05-03-2009 12:28 PM


All times are GMT +5.5. The time now is 11:05 PM.