Code examples for DataInputStream

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
75:	final DataInputStream input = new DataInputStream(inputStream); 
-
77:	final short invocationId = input.readShort(); 
-
79:	final int transactionIDBytesLength = PackedInteger.readPackedInteger(input); 
-
82:	input.read(transactionIDBytes); 
-
88:	onePhaseCommit = input.readBoolean(); 
Full Snippet Info
9
CodeRank
193:	DataInputStream in = new DataInputStream(ByteBufferUtil.inputStream(bb)); 
194:	assert in.readInt() == 255; 
195:	assert in.readByte() == (byte)-3; 
196:	assert in.readLong() == 42L; 
Full Snippet Info
8
CodeRank
71:	final DataInputStream input = new DataInputStream(inputStream); 
-
73:	final short invocationId = input.readShort(); 
74:	final String txParentNodeName = input.readUTF(); 
75:	final int recoveryFlags = input.readInt(); 
Full Snippet Info
8
CodeRank
86:	hasGate = data.readBoolean(); 
87:	gateIconIndex = data.readInt(); 
88:	pipeConnectionMatrix.readData(data); 
-
90:	wireMatrix.readData(data); 
-
92:	plugMatrix.readData(data); 
Full Snippet Info
8
CodeRank
143:	DataInputStream dis = new DataInputStream(entity.getContent()); 
-
145:	dis.readFully(body); 
-
148:	dis.close(); 
Full Snippet Info
8
CodeRank
56:	DataInput din = new DataInputStream(bais); 
-
58:	readTbw.readFields(din); 
Full Snippet Info
8
CodeRank
28:	super.readData(data); 
29:	entityId = data.readInt(); 
Full Snippet Info
8
CodeRank
238:	bloomFilter.readFields(in); 
239:	in.close(); 
-
245:	IOUtils.closeStream(in); 
Full Snippet Info
8
CodeRank
34:	super.readData(data); 
-
36:	short length = data.readShort(); 
-
38:	data.readFully(compressed); 
Full Snippet Info
8
CodeRank
38:	this.entityId = data.readInt(); 
39:	short length = data.readShort(); 
-
41:	data.readFully(compressed); 
Full Snippet Info
8
CodeRank
56:	posX = data.readInt(); 
57:	posY = data.readInt(); 
58:	posZ = data.readInt(); 
-
60:	byte type = data.readByte(); 
-
65:	payload.readData(data); 
Full Snippet Info
8
CodeRank
53:	copyinfo.readFields(new DataInputStream(new ByteArrayInputStream(out 
54:	.toByteArray()))); 
Full Snippet Info
8
CodeRank
52:	this.slot = data.readInt(); 
53:	int id = data.readInt(); 
-
56:	stack = new ItemStack(id, data.readInt(), data.readInt()); 
-
59:	short length = data.readShort(); 
-
63:	data.readFully(compressed); 
Full Snippet Info
8
CodeRank
34:	WeightedWritable<Text> a2 = new WeightedWritable<Text>(new DataInputStream(new ByteArrayInputStream(bytes.toByteArray()))); 
Full Snippet Info
7
CodeRank
100:	this.in = new DataInputStream(in); 
Full Snippet Info
7
CodeRank
183:	DataInputStream dataInputStream = new DataInputStream(entity.getContent()); 
184:	dataInputStream.readFully(responseBytes); 
185:	dataInputStream.close(); 
Full Snippet Info
8
CodeRank
69:	DataInputStream in = new DataInputStream(buf); 
70:	ident.readFields(in); 
Full Snippet Info
8
CodeRank
117:	DataInputStream is = new DataInputStream(new BufferedInputStream( 
-
119:	String method = is.readUTF().toUpperCase(Locale.ROOT); 
-
121:	trie = new Trie(is); 
-
123:	trie = new MultiTrie(is); 
-
125:	is.close(); 
Full Snippet Info
7
CodeRank
425:	this.op = inStream.readByte(); 
426:	this.htype = inStream.readByte(); 
427:	this.hlen = inStream.readByte(); 
428:	this.hops = inStream.readByte(); 
429:	this.xid = inStream.readInt(); 
430:	this.secs = inStream.readShort(); 
431:	this.flags = inStream.readShort(); 
432:	inStream.readFully(this.ciaddr, 0, 4); 
433:	inStream.readFully(this.yiaddr, 0, 4); 
434:	inStream.readFully(this.siaddr, 0, 4); 
435:	inStream.readFully(this.giaddr, 0, 4); 
436:	inStream.readFully(this.chaddr, 0, 16); 
437:	inStream.readFully(this.sname, 0, 64); 
438:	inStream.readFully(this.file, 0, 128); 
-
440:	inStream.readFully(options, 0, 312); 
Full Snippet Info
7
CodeRank
77:	DataInputStream dis = new DataInputStream(bbis); 
78:	dis.read(); 
79:	assertEquals(i, dis.readInt()); 
80:	dis.close(); 
Full Snippet Info
7
CodeRank