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

net.contentobjects.jnotify.Util Maven / Gradle / Ivy

Go to download

A Java library that allow Java applications to receive file system events on Windows and Linux.

The newest version!
package net.contentobjects.jnotify;

public class Util
{
	public static String getMaskDesc(int mask)
	{
		StringBuffer s = new StringBuffer();
		if ((mask & JNotify.FILE_CREATED) != 0)
		{
			s.append("FILE_CREATED|");
		}
		if ((mask & JNotify.FILE_DELETED) != 0)
		{
			s.append("FILE_DELETED|");
		}
		if ((mask & JNotify.FILE_MODIFIED) != 0)
		{
			s.append("FILE_MODIFIED|");
		}
		if ((mask & JNotify.FILE_RENAMED) != 0)
		{
			s.append("FILE_RENAMED|");
		}
		if (s.length() > 0)
		{
			return s.substring(0, s.length() - 1);
		}
		else
		{
			return "UNKNOWN";
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy