SFRMTarUtils¶
-
public class
SFRMTarUtils
¶ Author: Patrick Yip
Methods¶
getNameBytes¶
-
public static int
getNameBytes
(StringBuffer name, byte[] buf, int offset, int length)¶ Determine the number of bytes in an entry name.
Parameters: - name – The header name from which to parse.
- buf – The buffer from which to parse.
- offset – The offset into the buffer from which to parse.
- length – The number of header bytes to parse.
Returns: The number of bytes in a header’s entry name.
parseName¶
-
public static String
parseName
(byte[] header, int offset, int length)¶ Parse an entry name from a header buffer.
Parameters: - header – The header buffer from which to parse.
- offset – The offset into the buffer from which to parse.
- length – The number of header bytes to parse.
Returns: The header’s entry name.