Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Java & XML 2nd Edition solutions to real world problems phần 3
Đang chuẩn bị liên kết để tải về tài liệu:
Java & XML 2nd Edition solutions to real world problems phần 3
Gia Bình
67
42
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Các giao diện được cung cấp trong gói SAX sẽ trở thành một phần quan trọng của bộ công cụ của bất kỳ lập trình để xử lý XML. Mặc dù các lớp SAX là nhỏ và ít về số lượng, họ cung cấp một khuôn khổ quan trọng | Java XML 2nd Edition chain or pipeline of events. To understand what I mean by a pipeline here s the normal flow of a SAX parse Events in an XML document are passed to the SAX reader. The SAX reader and registered handlers pass events and data to an application. What developers started realizing though is that it is simple to insert one or more additional links into this chain Events in an XML document are passed to the SAX reader. The SAX reader performs some processing and passes information to another SAX reader. Repeat until all SAX processing is done. Finally the SAX reader and registered handlers pass events and data to an application. It s the middle steps that introduce a pipeline where one reader that performed specific processing passes its information on to another reader repeatedly instead of having to lump all code into one reader. When this pipeline is set up with multiple readers modular and efficient programming results. And that s what the XMLFilter class allows for chaining of XMLReader implementations through filtering. Enhancing this even further is the class org.xml.sax.helpers.XMLFilterImpl which provides a helpful implementation of XMLFilter. It is the convergence of an XMLFilter and the DefaultHandler class I showed you in the last section the XMLFilterImpl class implements XMLFilter ContentHandler ErrorHandler EntityResolver and DTDHandler providing pass-through versions of each method of each handler. In other words it sets up a pipeline for all SAX events allowing your code to override any methods that need to insert processing into the pipeline. Let s use one of these filters. Example 4-5 is a working ready-to-use filter. You re past the basics so we will move through this rapidly. Example 4-5. NamespaceFilter class package javaxml2 import org.xml.sax.Attributes import org.xml.sax.SAXException import org.xml.sax.XMLReader import org.xml.sax.helpers.XMLFilterImpl public class NamespaceFilter extends XMLFilterImpl The old URI to replace .
TÀI LIỆU LIÊN QUAN
Windows XP For Dummies Quick Reference, 2nd Edition
Java & XML, 2nd Edition
The Book of PF, 2nd Edition
O'Reilly - Java & XML, 2nd Edition
Java & XML 2nd Edition solutions to real world problems phần 1
Java & XML 2nd Edition solutions to real world problems phần 2
Java & XML 2nd Edition solutions to real world problems phần 3
Java & XML 2nd Edition solutions to real world problems phần 4
Java & XML 2nd Edition solutions to real world problems phần 5
Java & XML 2nd Edition solutions to real world problems phần 6
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.