byte로 데이터를 주고 받는 방법 ( java read byte ) - 작성중


byte로 데이터를 주고 받는 방법 ( java read byte )   - 작성중

1. byte 파일 읽기 FileInputStream in = null; BufferedInputStream bis = null; try { in = new FileInputStream(new File("C:\\SeqID")); bis = new BufferedInputStream(in); int len = 0; while ((len = bis.read(buffer)) >= 0) { ByteBuffer bb = ByteBuffer.wrap(buffer); bb.order(ByteOrder.LITTLE_ENDIAN); String orgFilePath = ByteUtil.getString(bb, (orgFilePathSize * 2)); int eventType = ByteUtil.getInt(bb); } catch (Exception e) { e.printStackTrace(); } finally { try { bis.close(); in.close(); } catch (IOExce...



원문링크 : byte로 데이터를 주고 받는 방법 ( java read byte ) - 작성중