Calibre can import any
ebook file.
When you download from the library, you don't get the ebook, but an .acsm file, which is a pointer file to the actual book file. You need to use either Sony Library or
Adobe Digital Editions to open the .acsm to get the ebook file. Once you have that file, you can import that into Calibre.