지금은 전자 책 리더에서 일하고 있습니다 .i는이 http://www.siegmann.nl/epublib/android에서 epub 라이브러리를 얻었습니다.하지만 내용을 한 줄씩 읽고 프로젝트에있는 내용을 강조하는 옵션이 있습니다. 만드는 방법 그것은 가능합니다 .. 미리 감사드립니다.android에서 epub 파일을 읽는 방법은 무엇입니까?
1
A
답변
1
그래서 나는 그 대답을 어떻게 생각해 냈는지 모르겠다.
귀하의 현재 질문에 대해 척추 색인 (정보가 메타 데이터에있는 경우)이 목차와 달리 차별화 된 내용 또는 목차를 볼 수 있습니다. 이제 척추 인덱스가 어떻게
:
이제Spine spine = new Spine(book.getTableOfContents());
List<SpineReference> spineList = spine.getSpineReferences(); //List of spine information
Resource res = spine.getResource(1);//1 is an example to proper utilize this you have to store the information on which part you are in and how much you rendered. I suggest keeping a static integer on what your location is and after this part is done you can go to the next one and so on.
InputStream is = res.getInputStream();//getting the inputstream
StringBuilder string = new StringBuilder();//Create a builder as we will add more information to the string
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
string html,line = null;
while ((line = reader.readLine()) != null) {//start reading the information line by line
html = string.append(line + "\n").toString();//get information for line by line basis
}
올바른 정보를 얻을 수있는 텍스트에서 HTML 정보를 분석 할 필요가가는 내용의 테이블에 대한 지금
1 줄의 변경을 제외하고는 상단과 동일해야합니다.
ArrayList<TOCReference> book_list = new ArrayList<TOCReference>(amBook().getTableOfContents().getTocReferences());
같은 방식으로 읽는 것이 좋습니다. BufferReader -> Inputstream
관련 문제
- 1. .epub 파일을 읽는 방법
- 2. Android에서 시스템 로그 파일을 읽는 방법은 무엇입니까?
- 3. iPhone에 로컬로 epub 파일을 다운로드하는 방법은 무엇입니까?
- 4. android에서 traces.txt 파일을 읽고 읽는 방법
- 5. android에서 바이너리 .AMF 파일을 읽는 방법
- 6. ePub 로딩 - 간단한 ePub 리더 질문
- 7. java/Android에서 itextpdf.jar 파일을 사용하여 기존 pdf 파일을 읽는 방법
- 8. C#으로 Excel 파일을 읽는 방법은 무엇입니까?
- 9. 주어진 폴더에서 mp3 파일을 읽는 방법은 무엇입니까?
- 10. UTF8 파일을 임의로 읽는 방법은 무엇입니까?
- 11. CSV 파일을 데이터 세트로 읽는 방법은 무엇입니까?
- 12. Java로 파일을 계속 읽는 방법은 무엇입니까?
- 13. PHP로 BerkeleyDB 파일을 읽는 방법은 무엇입니까?
- 14. StreamReader를 사용하여 URI에서 파일을 읽는 방법은 무엇입니까?
- 15. 안드로이드에서 스택 추적 파일을 읽는 방법은 무엇입니까?
- 16. XML 파일을 읽는 가장 좋은 방법은 무엇입니까?
- 17. iPhone - .epub 파일 읽기
- 18. Android에서 KML 파일을 만드는 방법은 무엇입니까?
- 19. 선택한 파일을 Android에서 여는 방법은 무엇입니까?
- 20. 파일을 작성하고 파일을 읽는
- 21. 파일을 읽는 방법
- 22. ePub 리더가 때때로 ePub 파일의 내용을 표시합니다. 때때로 굵게 표시됩니다.
- 23. iPhone - ePub 파일을 iphone 앱으로 변환
- 24. Nook에서 epub 파일을 자동로드하는 URL 프로토콜/mimetype?
- 25. EPub 파일을 압축 해제 할 수 없습니다.
- 26. 자바에서 이미지 파일을 읽는 중
- 27. 블루투스에서 실시간으로 데이터를 읽는 방법은 무엇입니까?
- 28. 이클립스를 사용하여 android에서 줄을 읽는 방법
- 29. 패키지 파일에서 읽는 방법은 무엇입니까?
- 30. 배치 파일 : 파일을 읽는 방법?
정확하게 문제는 무엇입니까? –
나는 가능한 한 textview.is에 epub 교과서를 보여주고 싶다? f yes how? 적절한 대답은 ... – daffodils
@ daffodils 나는 그 사이트에서 다운로드되었지만 작동하지 않는다. – PankajAndroid