|
From: Brian M. <ma...@us...> - 2004-10-28 19:32:44
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/fmod3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2880/src/java/org/lwjgl/fmod3 Modified Files: FSoundTagField.java Log Message: default to trimmed string since most tags include a \0 Index: FSoundTagField.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/fmod3/FSoundTagField.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- FSoundTagField.java 16 Oct 2004 01:01:10 -0000 1.3 +++ FSoundTagField.java 28 Oct 2004 19:32:31 -0000 1.4 @@ -45,9 +45,7 @@ /** Name of tagfield */ String name; - /** - * ByteBuffer that will point to the tagfield data - */ + /** ByteBuffer that will point to the tagfield data */ ByteBuffer value; /** Length of tagfield data */ @@ -112,12 +110,12 @@ } /** - * @value as string + * @return value as a <b>trimmed</b> string */ public String getValueAsString() { byte[] buffer = new byte[value.capacity()]; value.get(buffer); value.rewind(); - return new String(buffer); + return new String(buffer).trim(); } } \ No newline at end of file |