code: @Override
      public InputStream get() throws IOException {
          if (type == Type.DIRECTORY)
              throw new IOException("Can not read contents of a directory");
  
          return new FileInputStream(wrappedFile);
      }
docs: {@inheritDoc}