Class OpenOfficeURI


  • public class OpenOfficeURI
    extends java.lang.Object
    A class that attempts to embody OpenOffice's rules for encoding file URIs which appear to differ from Java's. A Windows style path is always prefixed "file:///" whereas a unix one is prefixed "file://".
    Author:
    dward
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenOfficeURI​(java.lang.String source)
      Instantiates a new open office URI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OpenOfficeURI

        public OpenOfficeURI​(java.lang.String source)
                      throws java.io.IOException
        Instantiates a new open office URI.
        Parameters:
        source - the source file name to convert to a URI
        Throws:
        java.io.IOException - if the string cannot be resolved to a canonical file path
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object