Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  /*
   *  Copyright (C) 2010-2011 Oracle Corporation
   *
   *  This file is part of the VirtualBox SDK, as available from
   *  http://www.virtualbox.org.  This library is free software; you can
   *  redistribute it and/or modify it under the terms of the GNU Lesser General
   *  Public License as published by the Free Software Foundation, in version 2.1
   *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
  *  This library is distributed in the hope that it will be useful, but WITHOUT
  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
  *  License for more details.
  *
  * IFsObjInfo.java
  *
  * DO NOT EDIT! This is a generated file.
  * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
  * Generator: src/VBox/Main/glue/glue-java.xsl
  */
 
 package org.virtualbox_4_2;
 
 import javax.xml.ws.*;
 import java.util.List;

Abstract parent interface for VirtualBox file system object information. This can be information about a file or a directory, for example. Interface ID: {4047BA30-7006-4966-AE86-94164E5E20EB}
 
 public class IFsObjInfo extends IUnknown {
 
     public IFsObjInfo(String wrappedVboxPortType port) {
           super(wrappedport);
     }
Time of last access (st_atime).

Returns:
Long
 
     public Long getAccessTime() {
       try {
          Long retVal = .iFsObjInfoGetAccessTime();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Disk allocation size (st_blocks * DEV_BSIZE).

Returns:
Long
 
     public Long getAllocatedSize() {
       try {
          Long retVal = .iFsObjInfoGetAllocatedSize();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Time of file birth (st_birthtime).

Returns:
Long
 
     public Long getBirthTime() {
       try {
          Long retVal = .iFsObjInfoGetBirthTime();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Time of last status change (st_ctime).

Returns:
Long
 
     public Long getChangeTime() {
       try {
         Long retVal = .iFsObjInfoGetChangeTime();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The device number of a character or block device type object (st_rdev).

Returns:
Long
    public Long getDeviceNumber() {
      try {
         Long retVal = .iFsObjInfoGetDeviceNumber();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
File attributes. Not implemented yet.

Returns:
String
    public String getFileAttributes() {
      try {
         String retVal = .iFsObjInfoGetFileAttributes();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The current generation number (st_gen).

Returns:
Long
    public Long getGenerationId() {
      try {
         Long retVal = .iFsObjInfoGetGenerationId();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The group the filesystem object is assigned (st_gid).

Returns:
Long
    public Long getGID() {
      try {
         Long retVal = .iFsObjInfoGetGID();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The group name.

Returns:
String
    public String getGroupName() {
      try {
         String retVal = .iFsObjInfoGetGroupName();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Number of hard links to this filesystem object (st_nlink).

Returns:
Long
    public Long getHardLinks() {
      try {
         Long retVal = .iFsObjInfoGetHardLinks();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Time of last data modification (st_mtime).

Returns:
Long
    public Long getModificationTime() {
      try {
         Long retVal = .iFsObjInfoGetModificationTime();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The object's name.

Returns:
String
    public String getName() {
      try {
         String retVal = .iFsObjInfoGetName();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The unique identifier (within the filesystem) of this filesystem object (st_ino).

Returns:
Long
    public Long getNodeId() {
      try {
         Long retVal = .iFsObjInfoGetNodeId();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The device number of the device which this filesystem object resides on (st_dev).

Returns:
Long
    public Long getNodeIdDevice() {
      try {
         Long retVal = .iFsObjInfoGetNodeIdDevice();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The logical size (st_size). For normal files this is the size of the file. For symbolic links, this is the length of the path name contained in the symbolic link. For other objects this fields needs to be specified.

Returns:
Long
    public Long getObjectSize() {
      try {
         Long retVal = .iFsObjInfoGetObjectSize();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The object type. See FsObjType for more.

Returns:
org.virtualbox_4_2.FsObjType
    public org.virtualbox_4_2.FsObjType getType() {
      try {
         return org.virtualbox_4_2.FsObjType.fromValue(retVal.value());
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The user owning the filesystem object (st_uid).

Returns:
Long
    public Long getUID() {
      try {
         Long retVal = .iFsObjInfoGetUID();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
User flags (st_flags).

Returns:
Long
    public Long getUserFlags() {
      try {
         Long retVal = .iFsObjInfoGetUserFlags();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
The user name.

Returns:
String
    public String getUserName() {
      try {
         String retVal = .iFsObjInfoGetUserName();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
    public static IFsObjInfo queryInterface(IUnknown obj) {
       return obj == null ?  null : new IFsObjInfo(obj.getWrapped(), obj.getRemoteWSPort());
    }
New to GrepCode? Check out our FAQ X