Issue Details (XML | Word | Printable)

Key: DIRMINA-127
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Niklas Therning
Reporter: Trustin Lee
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
MINA

ByteBuffer.get/putPrefixedString()

Created: 21/Nov/05 09:16 PM   Updated: 05/Dec/05 06:44 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9.0

Time Tracking:
Not Specified

Resolution Date: 05/Dec/05 02:03 AM


 Description  « Hide
It is sometimes very useful to read or write a string which has a byte/short/integer field in front of the actual encoded string, and some protocols requires padding for alignining data.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #349422 Mon Nov 28 16:37:13 UTC 2005 trustin Resolved issues:
* DIRMINA-127 ByteBuffer.get/putPascalString()
* DIRMINA-126 ByteBuffer.get/putObject()
* DIRMINA-132 ByteBuffer.asInputStream() and ByteBuffer.asOutputStream()
Files Changed
ADD /directory/network/trunk/src/java/org/apache/mina/common/BufferDataException.java
MODIFY /directory/network/trunk/src/test/org/apache/mina/common/ByteBufferTest.java
MODIFY /directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
MODIFY /directory/network/trunk/src/java/org/apache/mina/common/ByteBufferProxy.java

Trustin Lee made changes - 29/Nov/05 12:23 AM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Trustin Lee added a comment - 29/Nov/05 01:37 AM
Done.

Trustin Lee made changes - 29/Nov/05 01:37 AM
Fix Version/s 0.9 [ 11069 ]
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Closed [ 6 ]
Trustin Lee made changes - 03/Dec/05 10:16 AM
Resolution Fixed [ 1 ]
Status Closed [ 6 ] Reopened [ 4 ]
Trustin Lee added a comment - 03/Dec/05 10:18 AM
Replaced get/putPascalString() with get/putPrefixedString(). Now they support padding, too.

Trustin Lee made changes - 03/Dec/05 10:18 AM
Description It is sometimes very useful to read or write a string which has an integer (or a short integer) field in front of the actual encoded string, so called 'Pascal String'. It is sometimes very useful to read or write a string which has a byte/short/integer field in front of the actual encoded string, and some protocols requires padding for alignining data.
Summary ByteBuffer.get/putPascalString() ByteBuffer.get/putPrefixedString()
Niklas Therning made changes - 03/Dec/05 07:23 PM
Assignee Trustin Lee [ trustin ] Niklas Therning [ niklas@trillian.se ]
Niklas Therning made changes - 04/Dec/05 03:32 AM
Status Reopened [ 4 ] In Progress [ 3 ]
Repository Revision Date User Message
ASF #353872 Sun Dec 04 17:01:38 UTC 2005 niklas Resolved issue DIRMINA-127
Files Changed
MODIFY /directory/network/trunk/src/test/org/apache/mina/common/ByteBufferTest.java
MODIFY /directory/network/trunk/src/java/org/apache/mina/common/ByteBuffer.java
MODIFY /directory/network/trunk/src/java/org/apache/mina/common/ByteBufferProxy.java

Niklas Therning made changes - 05/Dec/05 02:03 AM
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Trustin Lee made changes - 05/Dec/05 06:44 AM
Status Resolved [ 5 ] Closed [ 6 ]