This is a library of utilities for reading various seismic file types. Current support includes SAC, mseed and PSN.
The jar file can be downloaded here.
SAC files can be read with code similar to the following.
SacTimeSeries sac = new SacTimeSeries(); sac.read(filename);
Miniseed support is only for straight miniseed, ie only binary "data records" and no ascii "control records". A mseed file can be read like this.
DataInputStream dis = new DataInputStream(new BufferedInputStream(new FileInputStream(filename)));
MiniSeedRead mseed = new MiniSeedRead(dis);
try {
while (true) {
SeedRecord sr = mseed.getNextRecord();
}
} catch (EOFException e) {
}