Menu

PackagePart - getUri

Help
2008-08-15
2013-04-29
  • Pallavi Priya

    Pallavi Priya - 2008-08-15

    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?

     
    • Julien CHABLE

      Julien CHABLE - 2008-08-23

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.