Code examples for PushbackInputStream

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.
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
35:	is = new PushbackInputStream(is); 
36:	assertEquals(10, is.available()); 
37:	assertFalse(is.markSupported()); 
-
39:	is = StreamUtils.markSupportedInputStream(is); 
Full Snippet Info
7
CodeRank
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
109:	PushbackInputStream stream = new PushbackInputStream(session.getInputStream()); 
110:	int firstByte = stream.read(); 
111:	stream.unread(firstByte); 
Full Snippet Info
7
CodeRank
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
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
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
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
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
206:	pbis = new PushbackInputStream(input, 1); 
-
209:	pbis.unread(b); 
Full Snippet Info
6
CodeRank
68:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
71:	int version = in.read(); 
-
77:	in.unread(version); 
Full Snippet Info
7
CodeRank
23:	PushbackInputStream pb = new PushbackInputStream(is, 2); 
-
25:	pb.read(signature); 
26:	pb.unread(signature); 
Full Snippet Info
6
CodeRank
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
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
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
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
69:	PushbackInputStream in =  new PushbackInputStream(s.getInputStream()); 
-
72:	int version = in.read(); 
-
78:	in.unread(version); 
Full Snippet Info
6
CodeRank
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
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
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