Here you can find the source of writeData(Socket id, byte[] data, int len)
Parameter | Description |
---|---|
id | a Socket |
data | a byte[] |
len | an int |
Parameter | Description |
---|---|
IOException | an exception |
static void writeData(Socket id, byte[] data, int len) throws IOException
//package com.java2s; import java.io.IOException; import java.io.OutputStream; import java.net.Socket; public class Main { /**/*from w ww .ja v a2 s . c o m*/ * Method writeData * * @param id a Socket * @param data a byte[] * @param len an int * * @throws IOException * */ static void writeData(Socket id, byte[] data, int len) throws IOException { OutputStream output; output = id.getOutputStream(); output.write(data, 0, len); } }