Fr. 29.50

Using the HTML5 Filesystem API

Inglese · Tascabile

Spedizione di solito entro 3 a 5 settimane

Descrizione

Ulteriori informazioni










Several client-side storage options are available to web applications, but one area that's been lacking until now is file I/O—the ability to organize binary data into a true hierarchy of folders. That has changed with the advent of HTML5. With this book, you'll learn how to provide your applications with a file system that enables them to create, read, and write files and folders in a sandboxed section of the user's local filesystem.

Author Eric Bidelman, a Senior Developer Programs Engineer on the Google Chrome team, provides several techniques and complete code examples for working with the HTML5 Filesystem API.
* Learn common operations for working with files and directories
* Become familiar with HTML5's storage use cases and security considerations
* Understand the storage options available, including temporary, persistent, and unlimited
* Write text or append data to an existing user file
* Import files into your application by accessing a user's hard drive
* Get techniques for using a file with filesystem, blob, or data URLs
* Use the synchronous version of the HTML5 Filesystem API within a Web Worker context


Sommario













  • Preface




  • Chapter 1: Introduction




  • Chapter 2: Storage and Quota




    • Storage Types




    • Quota Management API






  • Chapter 3: Getting Started




  • Chapter 4: Working with Files




    • The FileEntry




    • Creating a File




    • Reading a File by Name




    • Writing to a File




    • Importing Files




    • Removing Files






  • Chapter 5: Working with Directories




    • The DirectoryEntry




    • Creating Directories




    • Reading the Contents of a Directory




    • Removing Directories






  • Chapter 6: Copying, Renaming, and Moving Entries




  • Chapter 7: Using Files




    • Filesystem URLs




    • Blob URLs




    • Data URLs






  • Chapter 8: The Synchronous API




    • Introduction




    • Opening a Filesystem




    • Working with Files and Directories




    • Handling Errors




    • Examples






  • Colophon




  • Info autore

    Eric is a Senior Developer Programs Engineer on the Google Chrome team, and one of the core contributors to html5rocks.com. His mission is to spread HTML5 goodness by educating developers, worldwide. Eric previously worked on the Google Docs, Sites, Health, and OAuth APIs. Prior to Google, Eric worked as a software engineer at the University of Michigan where he designed rich web applications and APIs for the university's 19 libraries. Eric holds a B.S.E in Computer Engineering and a B.S.E in Electrical Engineering from the University of Michigan, Ann Arbor. He can be found on Twitter at @ebidel.

    Riassunto

    Until now, web applications have been unable to organize binary data into a hierarchy of folders. That has changed with the advent of HTML5. With this book, you'll learn how to provide your applications with a true file system that enables them to create, read, and write files ands folders in a sandboxed section of the user's local filesystem.

Dettagli sul prodotto

Autori Bidelman, Eric Bidelman
Editore O'Reilly
 
Lingue Inglese
Formato Tascabile
Pubblicazione 03.08.2011
 
EAN 9781449309459
ISBN 978-1-4493-0945-9
Dimensioni 178 mm x 233 mm x 5 mm
Peso 144 g
Categorie Scienze naturali, medicina, informatica, tecnica > Informatica, EDP > Linguaggi di programmazione

COMPUTERS / Document Management, Web programming, COMPUTERS / Internet / Web Programming, COMPUTERS / Languages / HTML

Recensioni dei clienti

Per questo articolo non c'è ancora nessuna recensione. Scrivi la prima recensione e aiuta gli altri utenti a scegliere.

Scrivi una recensione

Top o flop? Scrivi la tua recensione.

Per i messaggi a CeDe.ch si prega di utilizzare il modulo di contatto.

I campi contrassegnati da * sono obbligatori.

Inviando questo modulo si accetta la nostra dichiarazione protezione dati.