org.alfresco.util
Class OpenOfficeURI

java.lang.Object
  extended by org.alfresco.util.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://".


Constructor Summary
OpenOfficeURI(java.lang.String source)
          Instantiates a new open office URI.
 
Method Summary
 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.