Loading…

Kryptel/Java

IFileSystemAttributes interface

Declaration

package com.kryptel.storage;

public interface IFileSystemAttributes {
  IEncryptedDirectory GetParent() throws Exception;

  String GetUniqueName() throws Exception;
  String GetName() throws Exception;
  void SetName(String name) throws Exception;

  long GetTime() throws Exception;
  void SetTime(long ftime) throws Exception;

  String GetDescription() throws Exception;
  void SetDescription(String descr) throws Exception;

  long GetAttributes() throws Exception;
  void SetAttributes(int attr) throws Exception;
}

Description

This interface is a common ancestor for IEncryptedDirectory and IEncryptedFile representing attributes that are common for all file objects.

GetParent

IEncryptedDirectory GetParent() throws Exception;

Returns IEncryptedDirectory of the parent directory or null if the item is a root folder.

GetUniqueName

String GetUniqueName() throws Exception;

Returns the item's unique name.

GetName

String GetName() throws Exception;

Returns the item's name.

SetName

void SetName(String name) throws Exception;

Changes the item's name to name.

GetTime

long GetTime() throws Exception;

Get the item's timestamp. The timestamp value is the number of seconds passed since Jan 1st, 1970.

SetTime

void SetTime(long ftime) throws Exception;

Modifies the item's timestamp. The timestamp value is the number of seconds passed since Jan 1st, 1970.

GetDescription

String GetDescription() throws Exception;

Returns the item's text description. If the item does not have any description, returns null.

SetDescription

void SetDescription(String descr) throws Exception;

Attach a text description to the item.

GetAttributes

long GetAttributes() throws Exception;

Returns the item's attributes. Low 32 bits contain system-specific attributes, and high 32 bits (from 32 to 63) contain Constants.EFFL_* flags.

SetAttributes

void SetAttributes(int attr) throws Exception;

Set system-specific attributes.