com.ibm.as400.access
Class NPDataAnalyzer
- java.lang.Object
-
- com.ibm.as400.access.NPDataAnalyzer
-
public class NPDataAnalyzer extends java.lang.Object
Class NPDataAnalyzer is an internal class used to analyze print data streams. It can detect if they are SCS or AFP and if they are not one of those it will default to USERASCII.
-
-
Constructor Summary
Constructors Constructor and Description NPDataAnalyzer()
-
Method Summary
Methods Modifier and Type Method and Description static java.lang.String
sniff(byte[] buf, int offset, int len)
sniffs the data and tells you what it appears to be.
-
-
-
Method Detail
-
sniff
public static java.lang.String sniff(byte[] buf, int offset, int len)
sniffs the data and tells you what it appears to be.- Parameters:
buf
- The data buffer.offset
- Offset into the data buffer to start at.len
- The number of bytes to analyze.- Returns:
- A string with the server Printer Device Type value of what this data is most likely (*SCS, *AFPDS or *USERASCII).
-
-