<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.3.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Java Shared Mime Info</title>
	<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/</link>
	<description></description>
	<pubDate>Mon, 08 Sep 2008 15:13:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: Matt</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-22923</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 07 Sep 2007 04:07:55 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-22923</guid>
		<description>First - Nice library!

Second - I have users that create Excel files and then later down the road save them with a .csv extension.  I know...I know...why they do this is beyond this question.  When I use version 0.0.6 on this type of file it reports it as a text/csv.  Opening the file in a text editor clearly shows that this is not a csv file.  Can you give a reason why it is returning "text/csv" instead of "application/vnd.ms-excel"?

Thanks!

Matt</description>
		<content:encoded><![CDATA[<p>First - Nice library!</p>
<p>Second - I have users that create Excel files and then later down the road save them with a .csv extension.  I know&#8230;I know&#8230;why they do this is beyond this question.  When I use version 0.0.6 on this type of file it reports it as a text/csv.  Opening the file in a text editor clearly shows that this is not a csv file.  Can you give a reason why it is returning &#8220;text/csv&#8221; instead of &#8220;application/vnd.ms-excel&#8221;?</p>
<p>Thanks!</p>
<p>Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arimus</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-22245</link>
		<dc:creator>arimus</dc:creator>
		<pubDate>Fri, 13 Jul 2007 19:53:08 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-22245</guid>
		<description>Sorry, been afk due to some job switching ;)  Yeah, if you provide me with any patches you guys have arimus AT users.sourceforge.net, I can merge in the changes for folks.  I only ask that you give me the okay to dual-license any contributions...I may switch to another license (Apache perhaps) at some point here.

As for licensing, I am currently licensing under the LGPL, which is not a viral license and does not require you to release your code at all.  It only requires modifications to jmimemagic itself be opened up to those you distribute to.

jMimeMagic can handle both files and byte[].  Currently streams are not supported, but that wouldn't be too hard to add.</description>
		<content:encoded><![CDATA[<p>Sorry, been afk due to some job switching <img src='http://hedges.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Yeah, if you provide me with any patches you guys have arimus AT users.sourceforge.net, I can merge in the changes for folks.  I only ask that you give me the okay to dual-license any contributions&#8230;I may switch to another license (Apache perhaps) at some point here.</p>
<p>As for licensing, I am currently licensing under the LGPL, which is not a viral license and does not require you to release your code at all.  It only requires modifications to jmimemagic itself be opened up to those you distribute to.</p>
<p>jMimeMagic can handle both files and byte[].  Currently streams are not supported, but that wouldn&#8217;t be too hard to add.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17622</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Wed, 23 May 2007 10:18:49 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17622</guid>
		<description>Renzo,

  It shouldn't be hard to make the change to the code necessary. If you could send me the changes that would be great! I'll probably be adding this feature soon but can't guarantee timescale

  As for the license issues you should consult with your legal people.</description>
		<content:encoded><![CDATA[<p>Renzo,</p>
<p>  It shouldn&#8217;t be hard to make the change to the code necessary. If you could send me the changes that would be great! I&#8217;ll probably be adding this feature soon but can&#8217;t guarantee timescale</p>
<p>  As for the license issues you should consult with your legal people.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17621</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Wed, 23 May 2007 10:16:01 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17621</guid>
		<description>Emmanuel, I'll look into this when I get a minute. Thanks for posting the issue and solution.</description>
		<content:encoded><![CDATA[<p>Emmanuel, I&#8217;ll look into this when I get a minute. Thanks for posting the issue and solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renzo</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17619</link>
		<dc:creator>Renzo</dc:creator>
		<pubDate>Wed, 23 May 2007 09:58:17 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17619</guid>
		<description>Hi, I'm just looking at jmimeinfo for detecting mime type from blobs as fetched from an own db. Thus I have memory byte arrays, not files. Can I use it anyway ?
Also does the GPL licence imply that we must make all other proprietary application jars available in source ?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m just looking at jmimeinfo for detecting mime type from blobs as fetched from an own db. Thus I have memory byte arrays, not files. Can I use it anyway ?<br />
Also does the GPL licence imply that we must make all other proprietary application jars available in source ?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emmanuel</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17075</link>
		<dc:creator>emmanuel</dc:creator>
		<pubDate>Wed, 16 May 2007 09:18:58 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17075</guid>
		<description>for psd files : 2 bugs...
first :
in MagicFile.java function  readLine()
		byte[] buff = new byte[valueLength];
		in.readFully(buff);
		line.setValue(buff);

		b = in.read();
		if (b == '&#38;') {
                        buff = new byte[valueLength];  // this must be added otherwise value is replaced with mask buffer
			in.readFully(buff);
			line.setMask(buff);
			b = in.read();
		}
second:
in Rule.java function Mask()
private void mask(byte[] sample){
		for(int i = 0; i </description>
		<content:encoded><![CDATA[<p>for psd files : 2 bugs&#8230;<br />
first :<br />
in MagicFile.java function  readLine()<br />
		byte[] buff = new byte[valueLength];<br />
		in.readFully(buff);<br />
		line.setValue(buff);</p>
<p>		b = in.read();<br />
		if (b == &#8216;&amp;&#8217;) {<br />
                        buff = new byte[valueLength];  // this must be added otherwise value is replaced with mask buffer<br />
			in.readFully(buff);<br />
			line.setMask(buff);<br />
			b = in.read();<br />
		}<br />
second:<br />
in Rule.java function Mask()<br />
private void mask(byte[] sample){<br />
		for(int i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: emmanuel</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17007</link>
		<dc:creator>emmanuel</dc:creator>
		<pubDate>Tue, 15 May 2007 13:56:04 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-17007</guid>
		<description>Hello,

jmimeinfo works very well, and it is a good tool, but not for PSD files, fingerprint is not correct and jmimeinfo does not recognize PSD files... How to update mime magic file ?</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>jmimeinfo works very well, and it is a good tool, but not for PSD files, fingerprint is not correct and jmimeinfo does not recognize PSD files&#8230; How to update mime magic file ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andy</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-15108</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Fri, 20 Apr 2007 15:32:10 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-15108</guid>
		<description>Thanks Ryan and KewlCat problem has been fixed and new version 0.0.3 is available above.</description>
		<content:encoded><![CDATA[<p>Thanks Ryan and KewlCat problem has been fixed and new version 0.0.3 is available above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KewlCat</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-14402</link>
		<dc:creator>KewlCat</dc:creator>
		<pubDate>Thu, 12 Apr 2007 12:59:19 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-14402</guid>
		<description>Wooops... Sorry about that. I _had_ to place the directory named "jmimeinfo/"  inside the Eclipse workspace in order to make Ant work as intended. It works ! :-)</description>
		<content:encoded><![CDATA[<p>Wooops&#8230; Sorry about that. I _had_ to place the directory named &#8220;jmimeinfo/&#8221;  inside the Eclipse workspace in order to make Ant work as intended. It works ! <img src='http://hedges.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KewlCat</title>
		<link>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-14397</link>
		<dc:creator>KewlCat</dc:creator>
		<pubDate>Thu, 12 Apr 2007 10:01:36 +0000</pubDate>
		<guid>http://hedges.net/archives/2006/11/08/java-shared-mime-info/#comment-14397</guid>
		<description>Same problem here : files get parsed and identified but not closed properly, so any further action on the file is prohibited :-/
I tried to add the two missing "raf.close()" before both returns in Rule.java (lines 133 and 140) but when I recompiled (using Eclipse and the build script) and then tried to use my own version, there was a NullPointerException : net.hedges.mimeinfo.magic.MagicFile.parseMagic(MagicFile.java:51).
Apparently it needs a MIME-Magic that's not provided in the archive :-(

Could somebody please create and provide a clean jmimeinfo-0.0.3, or a way to make it ?</description>
		<content:encoded><![CDATA[<p>Same problem here : files get parsed and identified but not closed properly, so any further action on the file is prohibited :-/<br />
I tried to add the two missing &#8220;raf.close()&#8221; before both returns in Rule.java (lines 133 and 140) but when I recompiled (using Eclipse and the build script) and then tried to use my own version, there was a NullPointerException : net.hedges.mimeinfo.magic.MagicFile.parseMagic(MagicFile.java:51).<br />
Apparently it needs a MIME-Magic that&#8217;s not provided in the archive <img src='http://hedges.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
<p>Could somebody please create and provide a clean jmimeinfo-0.0.3, or a way to make it ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
