y‰SŽÒzJavaŽ¿–⥑ ..
621:ƒfƒtƒHƒ‹ƒg‚Ì–¼–³‚µ‚³‚ñ
07/07/15 12:13:26
ƒf[ƒ^‚̓ǂݞ‚݂ɂ‚¢‚ÄŽ¿–â‚Å‚·B
ˆê“xByte‚É‚µ‚ÄArrayList‚ÉŠi”[‚µ‚ÄAŽæ‚èo‚µ‚Äbyte‚ɕϊ·‚µ‚Ä‚¢‚Ü‚·B
‚à‚Á‚ƃXƒ}[ƒg‚È•û–@i‚±‚̃Nƒ‰ƒX‚ðŽg‚Á‚½•û‚ª—Ç‚¢“™j‚ª‚ ‚ê‚΋³‚¦‚Ä’¸‚¯‚È‚¢‚Å‚µ‚傤‚©B
ArrayList byteArray = new ArrayList();
int readByte = 0;
while (readByte != -1) {
readByte = stream.read();
if (readByte != -1) {
byteArray.add(new Byte((byte) readByte));
}
}
Byte[] byteBig = (Byte[]) byteArray.toArray(new Byte[0]);
byte[] byteTmp = new byte[byteBig.length];
for (int i = 0; i < byteBig.length; i++) {
byteTmp[i] = byteBig[i].byteValue();
}
ŽŸƒy[ƒW‘±‚«‚ð•\ަ1‚ð•\ަÅVƒŒƒX•\ަƒXƒŒƒbƒh‚ÌŒŸõ—ÞŽ—ƒXƒŒˆê——˜b‘è‚̃jƒ…[ƒX‚¨‚Ü‚©‚¹ƒŠƒXƒg¥ƒIƒvƒVƒ‡ƒ“‚ð•\ަ‰É‚‚Ԃµ2ch
5033“ú‘O‚ÉXV/271 KB
’S“–:undef