jtopenlite.com.ibm.jtopenlite.file.FileConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400 Show documentation
Show all versions of jt400 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// 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 - 2025 Weber Informatics LLC | Privacy Policy