11/**
22 * Copyright 2016 Bartosz Schiller
3- * <p/ >
3+ * <p>
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
66 * You may obtain a copy of the License at
7- * <p/ >
7+ * <p>
88 * http://www.apache.org/licenses/LICENSE-2.0
9- * <p/ >
9+ * <p>
1010 * Unless required by applicable law or agreed to in writing, software
1111 * distributed under the License is distributed on an "AS IS" BASIS,
1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2525import com .shockwave .pdfium .PdfiumCore ;
2626
2727import java .io .File ;
28- import java .io .FileDescriptor ;
2928import java .io .IOException ;
3029
3130class DecodingAsyncTask extends AsyncTask <Void , Void , Throwable > {
@@ -64,13 +63,13 @@ protected Throwable doInBackground(Void... params) {
6463 }
6564 }
6665
67- protected FileDescriptor getSeekableFileDescriptor (String path ) throws IOException {
66+ protected ParcelFileDescriptor getSeekableFileDescriptor (String path ) throws IOException {
6867 ParcelFileDescriptor pfd ;
6968
7069 File pdfCopy = new File (path );
7170 if (pdfCopy .exists ()) {
7271 pfd = ParcelFileDescriptor .open (pdfCopy , ParcelFileDescriptor .MODE_READ_ONLY );
73- return pfd . getFileDescriptor () ;
72+ return pfd ;
7473 }
7574
7675 if (!path .contains ("://" )) {
@@ -84,7 +83,7 @@ protected FileDescriptor getSeekableFileDescriptor(String path) throws IOExcepti
8483 throw new IOException ("Cannot get FileDescriptor for " + path );
8584 }
8685
87- return pfd . getFileDescriptor () ;
86+ return pfd ;
8887 }
8988
9089 @ Override
0 commit comments