What steps will reproduce the problem?
1. File f = new File("test.file.xls");
2. DocumentListEntry.MediaType.fromFileName(f.getName()).getMimeType()
What is the expected output? What do you see instead?
java.lang.IllegalArgumentException: No enum const class
com.google.gdata.data.docs.DocumentListEntry$MediaType.FILE.XLS
at java.lang.Enum.valueOf(Enum.java:196)
at
com.google.gdata.data.docs.DocumentListEntry$MediaType.valueOf(DocumentListEntry
.java:61)
at
com.google.gdata.data.docs.DocumentListEntry$MediaType.fromFileName(DocumentList
Entry.java:97)
What version of the product are you using? On what operating system?
GDocs-Java/2.0.1 GData-Java/1.35.1(gzip)
Please provide any additional information below.
File com.google.gdata.data.docs.DocumentListEntry.java line 95:
int index = fileName.indexOf('.');
replace with:
int index = fileName.lastIndexOf('.');
Original issue reported on code.google.com by blpha...@gmail.com on 12 Aug 2009 at 11:30
Original issue reported on code.google.com by
blpha...@gmail.com
on 12 Aug 2009 at 11:30