Class RemoteTextDataItem

java.lang.Object
ghidra.framework.store.remote.RemoteFolderItem
ghidra.framework.store.remote.RemoteTextDataItem
All Implemented Interfaces:
FolderItem, TextDataItem

public class RemoteTextDataItem extends RemoteFolderItem implements TextDataItem
  • Method Details

    • length

      public long length() throws IOException
      Description copied from interface: FolderItem
      Returns the length of this domain file. This size is the minimum disk space used for storing this file, but does not account for additional storage space used to tracks changes, etc.
      Specified by:
      length in interface FolderItem
      Returns:
      file length
      Throws:
      IOException - thrown if IO or access error occurs
    • hasCheckouts

      public boolean hasCheckouts() throws IOException
      Description copied from interface: FolderItem
      Returns true if this item is versioned and has one or more checkouts.
      Specified by:
      hasCheckouts in interface FolderItem
      Throws:
      IOException - if an IO error occurs
    • canRecover

      public boolean canRecover()
      Description copied from interface: FolderItem
      Returns true if unsaved file changes can be recovered.
      Specified by:
      canRecover in interface FolderItem
    • isCheckinActive

      public boolean isCheckinActive() throws IOException
      Description copied from interface: FolderItem
      Returns true if this item is versioned and has a checkin in-progress.
      Specified by:
      isCheckinActive in interface FolderItem
      Throws:
      IOException - if an IO error occurs
    • updateCheckoutVersion

      public void updateCheckoutVersion(long checkoutId, int checkoutVersion, String user) throws IOException
      Description copied from interface: FolderItem
      Update the checkout version associated with this versioned item.
      Specified by:
      updateCheckoutVersion in interface FolderItem
      Parameters:
      checkoutId - id corresponding to an existing checkout
      checkoutVersion -
      user -
      Throws:
      IOException - if an IO error occurs.
    • output

      public void output(File outputFile, int ver, TaskMonitor monitor) throws IOException, CancelledException
      Description copied from interface: FolderItem
      Serialize (i.e., pack) this item into the specified outputFile.
      Specified by:
      output in interface FolderItem
      Parameters:
      outputFile - packed output file to be created
      ver - if this item is versioned, specifies the version to be output, otherwise -1 should be specified.
      monitor - progress monitor
      Throws:
      IOException
      CancelledException - if monitor cancels operation
    • getTextData

      public String getTextData()
      Description copied from interface: TextDataItem
      Get the text data that was stored with this item
      Specified by:
      getTextData in interface TextDataItem
      Returns:
      text data