java.lang.String.String(byte[] bytes, int offset, int length)
offset은 시작점, int는 크기
Constructs a new String by decoding the specified subarray of bytes using the platform's default charset. The length of the new String is a function of the charset, and hence may not be equal to the length of the subarray.
The behavior of this constructor when the given bytes are not valid in the default charset is unspecified. The java.nio.charset.CharsetDecoder class should be used when more control over the decoding process is required.
'Java > 자바' 카테고리의 다른 글
String 클래스 (0) | 2021.08.04 |
---|---|
MVC (0) | 2021.04.11 |
메소드 예외 선언 (0) | 2021.02.15 |
오류, Exception (0) | 2021.02.15 |
버블 정렬 (0) | 2021.02.14 |