Java Code Examples for com.jcraft.jzlib.JZlib#Z_DATA_ERROR

The following examples show how to use com.jcraft.jzlib.JZlib#Z_DATA_ERROR . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}
 
Example 2
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}
 
Example 3
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}
 
Example 4
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}
 
Example 5
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}
 
Example 6
Source File: RpcGZIPOutputStream.java    From p4ic4idea with Apache License 2.0 6 votes vote down vote up
/**
 * Provide a more human-readable form of the underlying JZlib compression errors.<p>
 * 
 * Should be made even more human-readable sometime later -- HR.
 */
protected String getJZlibErrorStr(int errNum) {
	switch (errNum) {
		case JZlib.Z_STREAM_ERROR:
			return "stream error";
		case JZlib.Z_DATA_ERROR:
			return "data error";
		case JZlib.Z_MEM_ERROR:
			return "memory error";
		case JZlib.Z_BUF_ERROR:
			return "buffer error";
		case JZlib.Z_VERSION_ERROR:
			return "version error";
		default:
			return "unknown error";
	}
}