Skip to content

Commit

Permalink
#28 fix javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
kpavlov committed Jan 17, 2017
1 parent 7ae91c1 commit 6137071
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/src/main/java/fixio/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ private Utils() {


/**
* @link http://www.javacodegeeks.com/2010/11/java-best-practices-char-to-byte-and.html
* @param str string to convert
* @return a byte array
* @see <a href="http://www.javacodegeeks.com/2010/11/java-best-practices-char-to-byte-and.html">Java Best Practices char to byte</a>
*/
public static byte[] stringToBytesASCII(String str) {
char[] buffer = str.toCharArray();
Expand All @@ -20,7 +22,9 @@ public static byte[] stringToBytesASCII(String str) {
}

/**
* @link http://www.javacodegeeks.com/2010/11/java-best-practices-char-to-byte-and.html
* @param bytes a byte array tp convert
* @return converted String
* @see <a href="http://www.javacodegeeks.com/2010/11/java-best-practices-char-to-byte-and.html">Java Best Practices char to byte</a>
*/
public static String bytesToStringASCII(byte[] bytes) {
final int length = bytes.length;
Expand Down

0 comments on commit 6137071

Please sign in to comment.