All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jtopenlite.com.ibm.jtopenlite.file.FileConstants Maven / Gradle / Ivy

The newest version!
///////////////////////////////////////////////////////////////////////////////
//
// JTOpenLite
//
// Filename:  FileConstants.java
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 2011-2012 International Business Machines Corporation and
// others.  All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////

package com.ibm.jtopenlite.file;

public final class FileConstants
{
  private FileConstants()
  {
  }

  public static final int RC_FILE_NOT_FOUND = 2;
  public static final int RC_PATH_NOT_FOUND = 3;
  public static final int RC_ACCESS_DENIED = 13;
  public static final int RC_NO_MORE_FILES = 18;

  public static String returnCodeToString(int rc)
  {
    switch (rc)
    {
      case RC_FILE_NOT_FOUND: return "File not found";
      case RC_PATH_NOT_FOUND: return "Path not found";
      case RC_ACCESS_DENIED: return "Access denied";
      case RC_NO_MORE_FILES: return "No more files";
    }
    return "Unknown return code";
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy