Class FdTable<T>

java.lang.Object
org.aksw.shellgebra.exec.graph.FdTable<T>
All Implemented Interfaces:
AutoCloseable

public class FdTable<T> extends Object implements AutoCloseable
  • Constructor Details

    • FdTable

      public FdTable()
    • FdTable

      public FdTable(int initialSize)
    • FdTable

      public FdTable(FileDescription<T>[] fileDescriptions)
  • Method Details

    • getResource

      public T getResource(int id)
      Get the Resource of a file description. RefCount stays unaffected.
    • getFd

      public FileDescription<T> getFd(int id)
      Get a file description. RefCount stays unaffected.
    • dup

      public FdTable<T> dup()
      Duplicate all file descriptors in this table.
    • closeFd

      public void closeFd(int id)
    • alloc

      public void alloc(int n)
    • setFd

      public void setFd(int tgt, FileDescription<T> newer)
    • dup2

      public void dup2(int tgt, int src)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable