1010 */
1111package com .nextcloud .android .sso .helper ;
1212
13- import androidx .annotation .Nullable ;
14-
1513import java .io .IOException ;
1614import java .io .InputStream ;
1715import java .nio .ByteBuffer ;
1816import java .nio .charset .Charset ;
1917
18+ import androidx .annotation .NonNull ;
19+ import androidx .annotation .Nullable ;
2020import okio .Buffer ;
2121import okio .BufferedSource ;
2222import okio .ByteString ;
2323import okio .Options ;
2424import okio .Sink ;
2525import okio .Timeout ;
26+ import okio .TypedOptions ;
2627
2728public class BufferedSourceSSO implements BufferedSource {
2829
@@ -32,23 +33,25 @@ public BufferedSourceSSO(InputStream inputStream) {
3233 this .mInputStream = inputStream ;
3334 }
3435
36+ @ NonNull
3537 @ Override
3638 public Buffer buffer () {
3739 throw new UnsupportedOperationException ("Not implemented" );
3840 }
3941
42+ @ NonNull
4043 @ Override
4144 public Buffer getBuffer () {
4245 return buffer ();
4346 }
4447
4548 @ Override
46- public boolean exhausted () throws IOException {
49+ public boolean exhausted () {
4750 throw new UnsupportedOperationException ("Not implemented" );
4851 }
4952
5053 @ Override
51- public void require (long byteCount ) throws IOException {
54+ public void require (long byteCount ) {
5255 throw new UnsupportedOperationException ("Not implemented" );
5356 }
5457
@@ -58,206 +61,217 @@ public boolean request(long byteCount) throws IOException {
5861 }
5962
6063 @ Override
61- public byte readByte () throws IOException {
64+ public byte readByte () {
6265 throw new UnsupportedOperationException ("Not implemented" );
6366 }
6467
6568 @ Override
66- public short readShort () throws IOException {
69+ public short readShort () {
6770 throw new UnsupportedOperationException ("Not implemented" );
6871 }
6972
7073 @ Override
71- public short readShortLe () throws IOException {
74+ public short readShortLe () {
7275 throw new UnsupportedOperationException ("Not implemented" );
7376 }
7477
7578 @ Override
76- public int readInt () throws IOException {
79+ public int readInt () {
7780 throw new UnsupportedOperationException ("Not implemented" );
7881 }
7982
8083 @ Override
81- public int readIntLe () throws IOException {
84+ public int readIntLe () {
8285 throw new UnsupportedOperationException ("Not implemented" );
8386 }
8487
8588 @ Override
86- public long readLong () throws IOException {
89+ public long readLong () {
8790 throw new UnsupportedOperationException ("Not implemented" );
8891 }
8992
9093 @ Override
91- public long readLongLe () throws IOException {
94+ public long readLongLe () {
9295 throw new UnsupportedOperationException ("Not implemented" );
9396 }
9497
9598 @ Override
96- public long readDecimalLong () throws IOException {
99+ public long readDecimalLong () {
97100 throw new UnsupportedOperationException ("Not implemented" );
98101 }
99102
100103 @ Override
101- public long readHexadecimalUnsignedLong () throws IOException {
104+ public long readHexadecimalUnsignedLong () {
102105 throw new UnsupportedOperationException ("Not implemented" );
103106 }
104107
105108 @ Override
106- public void skip (long byteCount ) throws IOException {
109+ public void skip (long byteCount ) {
107110 throw new UnsupportedOperationException ("Not implemented" );
108111 }
109112
113+ @ NonNull
110114 @ Override
111- public ByteString readByteString () throws IOException {
115+ public ByteString readByteString () {
112116 throw new UnsupportedOperationException ("Not implemented" );
113117 }
114118
119+ @ NonNull
115120 @ Override
116- public ByteString readByteString (long byteCount ) throws IOException {
121+ public ByteString readByteString (long byteCount ) {
117122 throw new UnsupportedOperationException ("Not implemented" );
118123 }
119124
120125 @ Override
121- public int select (Options options ) throws IOException {
126+ public int select (@ NonNull Options options ) {
122127 throw new UnsupportedOperationException ("Not implemented" );
123128 }
124129
125130 @ Override
126- public byte [] readByteArray () throws IOException {
131+ public byte [] readByteArray () {
127132 throw new UnsupportedOperationException ("Not implemented" );
128133 }
129134
130135 @ Override
131- public byte [] readByteArray (long byteCount ) throws IOException {
136+ public byte [] readByteArray (long byteCount ) {
132137 throw new UnsupportedOperationException ("Not implemented" );
133138 }
134139
135140 @ Override
136- public int read (byte [] sink ) throws IOException {
141+ public int read (byte [] sink ) {
137142 throw new UnsupportedOperationException ("Not implemented" );
138143 }
139144
140145 @ Override
141- public void readFully (byte [] sink ) throws IOException {
146+ public void readFully (byte [] sink ) {
142147 throw new UnsupportedOperationException ("Not implemented" );
143148 }
144149
145150 @ Override
146- public int read (byte [] sink , int offset , int byteCount ) throws IOException {
151+ public int read (byte [] sink , int offset , int byteCount ) {
147152 throw new UnsupportedOperationException ("Not implemented" );
148153 }
149154
150155 @ Override
151- public void readFully (Buffer sink , long byteCount ) throws IOException {
156+ public void readFully (@ NonNull Buffer sink , long byteCount ) {
152157 throw new UnsupportedOperationException ("Not implemented" );
153158 }
154159
155160 @ Override
156- public long readAll (Sink sink ) throws IOException {
161+ public long readAll (@ NonNull Sink sink ) {
157162 throw new UnsupportedOperationException ("Not implemented" );
158163 }
159164
165+ @ NonNull
160166 @ Override
161- public String readUtf8 () throws IOException {
167+ public String readUtf8 () {
162168 throw new UnsupportedOperationException ("Not implemented" );
163169 }
164170
171+ @ NonNull
165172 @ Override
166- public String readUtf8 (long byteCount ) throws IOException {
173+ public String readUtf8 (long byteCount ) {
167174 throw new UnsupportedOperationException ("Not implemented" );
168175 }
169176
170177 @ Nullable
171178 @ Override
172- public String readUtf8Line () throws IOException {
179+ public String readUtf8Line () {
173180 throw new UnsupportedOperationException ("Not implemented" );
174181 }
175182
183+ @ NonNull
176184 @ Override
177- public String readUtf8LineStrict () throws IOException {
185+ public String readUtf8LineStrict () {
178186 throw new UnsupportedOperationException ("Not implemented" );
179187 }
180188
189+ @ NonNull
181190 @ Override
182- public String readUtf8LineStrict (long limit ) throws IOException {
191+ public String readUtf8LineStrict (long limit ) {
183192 throw new UnsupportedOperationException ("Not implemented" );
184193 }
185194
186195 @ Override
187- public int readUtf8CodePoint () throws IOException {
196+ public int readUtf8CodePoint () {
188197 throw new UnsupportedOperationException ("Not implemented" );
189198 }
190199
200+ @ NonNull
191201 @ Override
192- public String readString (Charset charset ) throws IOException {
202+ public String readString (@ NonNull Charset charset ) {
193203 throw new UnsupportedOperationException ("Not implemented" );
194204 }
195205
206+ @ NonNull
196207 @ Override
197- public String readString (long byteCount , Charset charset ) throws IOException {
208+ public String readString (long byteCount , @ NonNull Charset charset ) {
198209 throw new UnsupportedOperationException ("Not implemented" );
199210 }
200211
201212 @ Override
202- public long indexOf (byte b ) throws IOException {
213+ public long indexOf (byte b ) {
203214 throw new UnsupportedOperationException ("Not implemented" );
204215 }
205216
206217 @ Override
207- public long indexOf (byte b , long fromIndex ) throws IOException {
218+ public long indexOf (byte b , long fromIndex ) {
208219 throw new UnsupportedOperationException ("Not implemented" );
209220 }
210221
211222 @ Override
212- public long indexOf (byte b , long fromIndex , long toIndex ) throws IOException {
223+ public long indexOf (byte b , long fromIndex , long toIndex ) {
213224 throw new UnsupportedOperationException ("Not implemented" );
214225 }
215226
216227 @ Override
217- public long indexOf (ByteString bytes ) throws IOException {
228+ public long indexOf (@ NonNull ByteString bytes ) {
218229 throw new UnsupportedOperationException ("Not implemented" );
219230 }
220231
221232 @ Override
222- public long indexOf (ByteString bytes , long fromIndex ) throws IOException {
233+ public long indexOf (@ NonNull ByteString bytes , long fromIndex ) {
223234 throw new UnsupportedOperationException ("Not implemented" );
224235 }
225236
226237 @ Override
227- public long indexOfElement (ByteString targetBytes ) throws IOException {
238+ public long indexOfElement (@ NonNull ByteString targetBytes ) {
228239 throw new UnsupportedOperationException ("Not implemented" );
229240 }
230241
231242 @ Override
232- public long indexOfElement (ByteString targetBytes , long fromIndex ) throws IOException {
243+ public long indexOfElement (@ NonNull ByteString targetBytes , long fromIndex ) {
233244 throw new UnsupportedOperationException ("Not implemented" );
234245 }
235246
236247 @ Override
237- public boolean rangeEquals (long offset , ByteString bytes ) throws IOException {
248+ public boolean rangeEquals (long offset , @ NonNull ByteString bytes ) {
238249 throw new UnsupportedOperationException ("Not implemented" );
239250 }
240251
241252 @ Override
242- public boolean rangeEquals (long offset , ByteString bytes , int bytesOffset , int byteCount ) throws IOException {
253+ public boolean rangeEquals (long offset , @ NonNull ByteString bytes , int bytesOffset , int byteCount ) {
243254 throw new UnsupportedOperationException ("Not implemented" );
244255 }
245256
257+ @ NonNull
246258 @ Override
247259 public BufferedSource peek () {
248260 throw new UnsupportedOperationException ("Not implemented" );
249261 }
250262
263+ @ NonNull
251264 @ Override
252265 public InputStream inputStream () {
253266 return mInputStream ;
254267 }
255268
256269 @ Override
257- public long read (Buffer sink , long byteCount ) throws IOException {
270+ public long read (@ NonNull Buffer sink , long byteCount ) {
258271 throw new UnsupportedOperationException ("Not implemented" );
259272 }
260273
274+ @ NonNull
261275 @ Override
262276 public Timeout timeout () {
263277 throw new UnsupportedOperationException ("Not implemented" );
@@ -274,7 +288,18 @@ public void close() throws IOException {
274288 }
275289
276290 @ Override
277- public int read (ByteBuffer dst ) throws IOException {
291+ public int read (ByteBuffer dst ) {
278292 throw new UnsupportedOperationException ("Not implemented" );
279293 }
294+
295+ @ Nullable
296+ @ Override
297+ public <T > T select (@ NonNull TypedOptions <T > typedOptions ) {
298+ return null ;
299+ }
300+
301+ @ Override
302+ public long indexOf (@ NonNull ByteString byteString , long l , long l1 ) {
303+ return 0 ;
304+ }
280305}
0 commit comments