Class CommonLocator

    • Constructor Detail

      • CommonLocator

        public CommonLocator()
    • Method Detail

      • createTempFileLocator

        protected ILocator createTempFileLocator()
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        public void delete()
                    throws java.io.IOException
        Description copied from interface: ILocator
        Delete the artifact referenced by this.
        Specified by:
        delete in interface ILocator
        Throws:
        java.io.IOException
      • getLength

        public long getLength()
                       throws java.io.IOException
        Description copied from interface: ILocator
        Returns the length of this data container or -1 if unknown
        Specified by:
        getLength in interface ILocator
        Returns:
        the length of this data container, measured in bytes.
        Throws:
        java.io.IOException - if an I/O error occurs.
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: ILocator
        true if the specified resource is read only.
        Specified by:
        isReadOnly in interface ILocator
        Returns:
        true if the specified resource is read only.
      • rename

        public void rename​(java.lang.String newName)
                    throws java.io.IOException
        Description copied from interface: ILocator
        Rename the complete physical name to newName.
        Specified by:
        rename in interface ILocator
        Parameters:
        newName - The new name of the ILocator. The new name is expected to contain both local and type part of the name.
        Throws:
        java.io.IOException
      • setReadOnly

        public void setReadOnly()
        Description copied from interface: ILocator
        Make the receiver read only. This is a one way switch only.
        Specified by:
        setReadOnly in interface ILocator