Author: remy.maucherat(a)jboss.com
Date: 2011-10-28 05:24:59 -0400 (Fri, 28 Oct 2011)
New Revision: 1859
Modified:
trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
Log:
- Add utility method.
Modified: trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
===================================================================
--- trunk/java/org/apache/tomcat/util/buf/B2CConverter.java 2011-10-27 21:56:10 UTC (rev
1858)
+++ trunk/java/org/apache/tomcat/util/buf/B2CConverter.java 2011-10-28 09:24:59 UTC (rev
1859)
@@ -67,6 +67,10 @@
leftovers.position(0);
}
+ public boolean isUndeflow() {
+ return (leftovers.position() > 0);
+ }
+
/**
* Convert the given bytes to characters.
*
Show replies by date