Method getBytes(String charsetName)
Return type: byte
Member of:
java.lang.String
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
out.write(s.getBytes("UTF-8"));
2
return new ByteArrayInputStream(this.contents.getBytes("UTF-8")); // NOI18N
3
byte[] data = s == null ? new byte[0] : s.getBytes("UTF-8"); //$NON-NLS-1$
4
byte[] bytes = s.getBytes("UTF8");
5
return new ByteArrayInputStream(_value.getBytes("ASCII"));
6
byte[] bytes = s.getBytes("utf-8");
7
this.text = s.getBytes("Cp437");
8
ByteArrayInputStream bis = new ByteArrayInputStream(content.getBytes("UTF-8"));
9
return 4 + s.getBytes("UTF-8").length; // NOI18N
10
writeLDBytes (s.getBytes ("8859_1")); // change to utf8 when ib supports sql ids
11
String res = FileUtil.readContents( new ByteArrayInputStream( src.getBytes("ISO-8859-1") ),
12
bytes = s.getBytes ("ISO-8859-1");
13
InputStream input = new ByteArrayInputStream( testRequest.getBytes( "US-ASCII" ) );
14
return new ByteArrayInputStream(buf.toString().getBytes("UTF-8"));
15
byte[] bytes = s.getBytes("UTF-8");
16
out.write( editor.getText( 0, editor.getDocument().getLength()).getBytes( "UTF-8"));
17
new ByteArrayInputStream(taggedText.getBytes("UTF8"));
18
write(msg.getBytes("latin1"));
19
chars = s.getBytes("Cp1252");
20
enqueue(contnet.getBytes("UTF8"), new HashMap());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.