I am getting a compilation error in this line as mentioned on sample code on http://www.openxml4j.org/Documentation/Tutorials/Default.html System.out.println(part.getUri() + " -> " + part.getContentType());
method getUri is undefined for PackagePart
Has this method been removed from PackagePart class definition?
Yes, this method has been removed (and obviously not correctly deprecated !). Here's the syntax now :
mypart.getPartName().getURI() or mypart.getPartName().getName() depending on your need and considering mypart is a PackagePart object.
Julien
Log in to post a comment.
I am getting a compilation error in this line as mentioned on sample code on http://www.openxml4j.org/Documentation/Tutorials/Default.html
System.out.println(part.getUri() + " -> " + part.getContentType());
method getUri is undefined for PackagePart
Has this method been removed from PackagePart class definition?
Yes, this method has been removed (and obviously not correctly deprecated !). Here's the syntax now :
mypart.getPartName().getURI() or mypart.getPartName().getName() depending on your need and considering mypart is a PackagePart object.
Julien