Best code examples for Java 8 PushbackInputStream class (java.io.PushbackInputStream)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 PushbackInputStream class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 PushbackInputStream examples from Open Source projects
This code example shows how to use the following methods: read, unread
33:	PushbackInputStream pushbackStream = new PushbackInputStream(input, 4); 
34:	int n = pushbackStream.read(bom, 0, 4); 
-
56:	pushbackStream.unread(bom, (n - unread), unread); 
-
58:	pushbackStream.unread(bom, 0, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, skip, unread
188:	PushbackInputStream in2 = new PushbackInputStream(in, bytes.length); 
-
190:	int count = in2.read(bytes, 0, bytes.length); 
-
192:	in2.unread(bytes, 0, count); 
-
210:	in2.skip(2); 
-
214:	in2.skip(2); 
-
219:	in2.skip(3); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
109:	PushbackInputStream stream = new PushbackInputStream(session.getInputStream()); 
110:	int firstByte = stream.read(); 
111:	stream.unread(firstByte); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
201:	PushbackInputStream pis = new PushbackInputStream(in); 
202:	int tag = pis.read(); 
-
209:	pis.unread(tag); 
-
217:	return readDERCertificate(new ASN1InputStream(pis)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
67:	n = pis.read(bom, 0, bom.length); 
-
93:	pis.unread(bom, (n - unread), unread); 
-
95:	pis.unread(bom, 0, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
72:	n = internalIn.read(bom, 0, bom.length); 
-
100:	internalIn.unread(bom, (n - unread), unread); 
-
102:	internalIn.unread(bom, 0, 0); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
81:	PushbackInputStream testin = new PushbackInputStream(in); 
82:	int ch = testin.read(); 
-
84:	testin.unread(ch); 
85:	} else if ((ch = testin.read()) != 0xBB) { // if ch==0xef 
86:	testin.unread(ch); 
87:	testin.unread(0xef); 
88:	} else if ((ch = testin.read()) != 0xBF) { // if ch ==0xbb 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: mark
43:	PushbackInputStream pb = new PushbackInputStream( 
-
45:	pb.mark(Integer.MAX_VALUE); 
46:	pb.mark(0); 
47:	pb.mark(-1); 
48:	pb.mark(Integer.MIN_VALUE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: unread
206:	pbis = new PushbackInputStream(input, 1); 
-
209:	pbis.unread(b); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
68:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
71:	int version = in.read(); 
-
77:	in.unread(version); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: available, markSupported
35:	is = new PushbackInputStream(is); 
36:	assertEquals(10, is.available()); 
37:	assertFalse(is.markSupported()); 
-
39:	is = StreamUtils.markSupportedInputStream(is); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: read, unread
201:	PushbackInputStream pis = new PushbackInputStream(in); 
202:	int tag = pis.read(); 
-
209:	pis.unread(tag); 
-
217:	return readDERCertificate(new ASN1InputStream(pis)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
33:	PushbackInputStream pushbackStream = new PushbackInputStream(input, 4); 
34:	int n = pushbackStream.read(bom, 0, 4); 
-
56:	pushbackStream.unread(bom, (n - unread), unread); 
-
58:	pushbackStream.unread(bom, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
84:	int b = in.read(); 
-
91:	int c = in.read(); 
-
93:	in.unread(c); 
-
96:	in.unread('\n'); 
-
100:	in.unread('\n'); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
202:	PushbackInputStream pis = new PushbackInputStream(in); 
203:	int tag = pis.read(); 
-
210:	pis.unread(tag); 
-
218:	return readDERCertificate(new ASN1InputStream(pis, limit)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
69:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
72:	int version = in.read(); 
-
78:	in.unread(version); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
27:	PushbackInputStream pushbackStream = new PushbackInputStream(input, 4); 
28:	int n = pushbackStream.read(bom, 0, 4); 
-
50:	pushbackStream.unread(bom, (n - unread), unread); 
-
52:	pushbackStream.unread(bom, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
206:	PushbackInputStream tempIn = new PushbackInputStream(in, BOM_SIZE); 
-
210:	n = tempIn.read(bom, 0, bom.length); 
-
249:	tempIn.unread(bom, (n - unread), unread); 
-
251:	tempIn.unread(bom, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: unread
60:	PushbackInputStream pushbackStream = new PushbackInputStream(in, HEADER_SIZE); 
-
95:	pushbackStream.unread(header, (n - unread), unread); 
-
97:	pushbackStream.unread(header, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
69:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
72:	int version = in.read(); 
-
78:	in.unread(version); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
73:	final PushbackInputStream in = new PushbackInputStream(s 
-
77:	final int version = in.read(); 
-
79:	if (!selectSocks5Authentication(in, out, 0)) { 
-
84:	in.unread(version); 
-
89:	return new ServerAuthenticatorNone(in, out); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read
145:	tobj = new PushbackInputStream(underlying); 
-
147:	tobj.read(buf, -1, 1); 
-
153:	tobj.read(buf, 0, -1); 
-
159:	tobj.read(buf, 10, 1); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
499:	PushbackInputStream pis = new PushbackInputStream(in, 3); 
-
501:	int len = pis.read(header, 0, 3); 
-
507:	pis.unread(header, 0, len); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
23:	PushbackInputStream pb = new PushbackInputStream(is, 2); 
-
25:	pb.read(signature); 
26:	pb.unread(signature); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
68:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
71:	int version = in.read(); 
-
77:	in.unread(version); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
206:	if (100 != inputStream.read(data, 0, 100)) { 
-
209:	inputStream.unread(data); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
88:	new PushbackInputStream(connection.getInputStream()); 
89:	int c = pin.read(); 
-
91:	pin.unread((byte)c); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
45:	pushbackReader = new PushbackInputStream(in, BOM_SIZE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
73:	final PushbackInputStream in = new PushbackInputStream(s 
-
77:	final int version = in.read(); 
-
79:	if (!selectSocks5Authentication(in, out, 0)) { 
-
84:	in.unread(version); 
-
89:	return new ServerAuthenticatorNone(in, out); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
74:	PushbackInputStream pb = new PushbackInputStream( gncXmlInputStream, 2 ); //we need a pushbackstream to look ahead 
-
76:	pb.read( signature ); //read the signature 
77:	pb.unread( signature ); //push back the signature to the stream 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
51:	PushbackInputStream pushbackStream = new PushbackInputStream(in, BOM_SIZE); 
52:	n = pushbackStream.read(bom, 0, bom.length); 
-
78:	pushbackStream.unread(bom, (n - unread), unread); 
-
80:	pushbackStream.unread(bom, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
43:	PushbackInputStream pushbackInputStream = new PushbackInputStream(in, 2); 
-
45:	if (pushbackInputStream.read(streamHeader) != 2) throw new AssertionError("Cound not read stream header"); 
46:	pushbackInputStream.unread(streamHeader); 
-
56:	return marshaler.readConfigurationData(pushbackInputStream); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
57:	PushbackInputStream push_back=new PushbackInputStream(in,buffer.length+10); 
58:	int nReads=push_back.read(buffer); 
59:	push_back.unread(buffer, 0, nReads); 
-
66:	return new BlockCompressedInputStream(push_back); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
23:	PushbackInputStream pb = new PushbackInputStream(is, 2); 
-
25:	pb.read(signature); 
26:	pb.unread(signature); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
40:	PushbackInputStream pushbackStream = new PushbackInputStream( in, BOM_SIZE ); 
41:	int n = pushbackStream.read( bom, 0, bom.length ); 
-
78:	pushbackStream.unread( bom, ( n - unread ), unread ); 
-
82:	pushbackStream.unread( bom, 0, 0 ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
53:	PushbackInputStream pushbackStream = new PushbackInputStream(in, BOM_SIZE); 
54:	int n = pushbackStream.read(bom, 0, bom.length); 
-
81:	pushbackStream.unread(bom, (n - unread), unread); 
-
83:	pushbackStream.unread(bom, 0, 0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
37:	this.in = new PushbackInputStream(pIn, MAX_PUSHED_BACK); 
-
42:	b = in.read(); 
-
45:	b = in.read(); 
-
48:	b = in.read(); 
-
56:	this.in.unread(bytes, 0, i); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
40:	PushbackInputStream pushbackStream = new PushbackInputStream( in, BOM_SIZE ); 
41:	int n = pushbackStream.read( bom, 0, bom.length ); 
-
78:	pushbackStream.unread( bom, ( n - unread ), unread ); 
-
82:	pushbackStream.unread( bom, 0, 0 ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
83:	PushbackInputStream pb = new PushbackInputStream(byteStream, 2); 
-
101:	int b1 = in.read(); 
-
103:	int b2 = in.read(); 
-
105:	in.unread(b2); 
-
109:	in.unread(b1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: unread
206:	pbis = new PushbackInputStream(input, 1); 
-
209:	pbis.unread(b); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: available, read, unread
59:	int bytesToRead = in.available(); 
-
64:	int b = in.read(); 
-
68:	in.unread(b); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
118:	final int cr = this.source.read(); 
119:	final int lf = this.source.read(); 
-
122:	this.source.unread(lf); 
123:	this.source.unread(cr); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
20:	PushbackInputStream pin = new PushbackInputStream( 
-
23:	int b = pin.read(); 
24:	if (b != '<') pin.unread(b); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
92:	PushbackInputStream in = new PushbackInputStream(s.getInputStream()); 
-
95:	int version = in.read(); 
-
101:	in.unread(version); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
93:	PushbackInputStream pis = new PushbackInputStream(istream,6); 
-
95:	pis.read(first6); 
-
105:	pis.unread(first6); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: read, unread
206:	PushbackInputStream tempIn = new PushbackInputStream(in, BOM_SIZE); 
-
210:	n = tempIn.read(bom, 0, bom.length); 
-
239:	tempIn.unread(bom, (n - unread), unread); 
-
241:	tempIn.unread(bom, 0, 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: read, unread
69:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
72:	int version = in.read(); 
-
78:	in.unread(version); 
Full Snippet Info
5
CodeRank
Related Java 8 PushbackInputStream Questions & Answers:
See Code Examples for Java 8 PushbackInputStream Methods: